Fixed the info command and its problems (kinda)
This commit is contained in:
parent
f84cc726be
commit
2e2bd57598
|
@ -145,7 +145,7 @@ export default new Command({
|
||||||
description: "Displays info about mentioned user.",
|
description: "Displays info about mentioned user.",
|
||||||
async run($: CommonLibrary): Promise<any> {
|
async run($: CommonLibrary): Promise<any> {
|
||||||
// Transforms the User object into a GuildMember object of the current guild.
|
// 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)
|
if (!member)
|
||||||
return $.channel.send(
|
return $.channel.send(
|
||||||
|
|
Loading…
Reference in New Issue