Fixed the info command and its problems (kinda)

This commit is contained in:
WatDuhHekBro 2020-12-23 04:36:18 -06:00 committed by Keanu
parent f84cc726be
commit 2e2bd57598
Signed by: keanucode
GPG key ID: A7431C0D513CA93B

View file

@ -145,7 +145,7 @@ export default new Command({
description: "Displays info about mentioned user.",
async run($: CommonLibrary): Promise<any> {
// Transforms the User object into a GuildMember object of the current guild.
const member = $.guild?.members.resolve($.args[0]);
const member = $.guild?.members.resolve($.args[0]) ?? (await $.guild?.members.fetch($.args[0]));
if (!member)
return $.channel.send(