mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 17:13:31 +01:00
refactor(OptionResolver): accept single type instead of an array (#6154)
This commit is contained in:
@@ -134,7 +134,7 @@ const Messages = {
|
||||
|
||||
COMMAND_INTERACTION_OPTION_NOT_FOUND: name => `Required option "${name}" not found.`,
|
||||
COMMAND_INTERACTION_OPTION_TYPE: (name, type, expected) =>
|
||||
`Option "${name}" is of type: ${type}; expected one of: ${expected.join(', ')}`,
|
||||
`Option "${name}" is of type: ${type}; expected ${expected}.`,
|
||||
COMMAND_INTERACTION_OPTION_EMPTY: (name, type) =>
|
||||
`Required option "${name}" is of type: ${type}; expected a non-empty value.`,
|
||||
COMMAND_INTERACTION_OPTION_NO_SUB_COMMAND: 'No sub-command specified for interaction.',
|
||||
|
||||
Reference in New Issue
Block a user