mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 09:03:29 +01:00
fix(CommandInteractionOptionResolver): type should be USER (#6148)
This commit is contained in:
@@ -169,7 +169,7 @@ class CommandInteractionOptionResolver {
|
||||
* The value of the option, or null if not set and not required.
|
||||
*/
|
||||
getMember(name, required = false) {
|
||||
const option = this._getTypedOption(name, ['MEMBER'], ['member'], required);
|
||||
const option = this._getTypedOption(name, ['USER'], ['member'], required);
|
||||
return option?.member ?? null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user