mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-17 03:53:29 +01:00
docs: add EnumResolvers (#7353)
This commit is contained in:
@@ -26,6 +26,9 @@ function unknownKeyStrategy(val) {
|
|||||||
throw new Error(`Could not resolve enum value for ${val}`);
|
throw new Error(`Could not resolve enum value for ${val}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Holds a bunch of methods to resolve enum values to readable strings.
|
||||||
|
*/
|
||||||
class EnumResolvers extends null {
|
class EnumResolvers extends null {
|
||||||
/**
|
/**
|
||||||
* A string that can be resolved to a {@link ChannelType} enum value. Here are the available types:
|
* A string that can be resolved to a {@link ChannelType} enum value. Here are the available types:
|
||||||
|
|||||||
Reference in New Issue
Block a user