fix(CommandInteractionOptionResolver): type should be USER (#6148)

This commit is contained in:
monbrey
2021-07-20 10:46:38 +10:00
committed by GitHub
parent 8ccfd6e07b
commit 02f55f0971

View File

@@ -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;
}