From e39735dd74f8a8b95efe8b87e351b421d429f65d Mon Sep 17 00:00:00 2001 From: Matthew R Date: Thu, 10 Sep 2020 01:43:58 -0400 Subject: [PATCH] fixes --- src/commands/addnote.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/addnote.ts b/src/commands/addnote.ts index 27c8741..3e07453 100644 --- a/src/commands/addnote.ts +++ b/src/commands/addnote.ts @@ -15,7 +15,7 @@ export default class AddNote extends Command { public async run(message: Message, args: string[]) { try { if (!args[0] || args.length < 1) return this.client.commands.get('help').run(message, [this.name]); - let { user } = this.client.util.resolveMember(args[0], this.mainGuild); + let user = this.client.util.resolveMember(args[0], this.mainGuild)?.user; if (!user) user = await this.client.getRESTUser(args[0]); if (!user) return this.error(message.channel, 'The member you specified could not be found.');