aboutsummaryrefslogtreecommitdiff
path: root/src/commands/info/avatar.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/info/avatar.ts')
-rw-r--r--src/commands/info/avatar.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands/info/avatar.ts b/src/commands/info/avatar.ts
index 7100afa..7654d2f 100644
--- a/src/commands/info/avatar.ts
+++ b/src/commands/info/avatar.ts
@@ -35,8 +35,8 @@ export default class AvatarCommand extends BushCommand {
});
}
- override async exec(message: BushMessage | BushSlashMessage, { user }: { user: User }): Promise<void> {
- user = user ?? message.author;
+ override async exec(message: BushMessage | BushSlashMessage, args: { user: User }): Promise<void> {
+ const user = args.user ?? message.author;
const embed = new MessageEmbed()
.setTimestamp()