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, 3 insertions, 1 deletions
diff --git a/src/commands/info/avatar.ts b/src/commands/info/avatar.ts
index 37d2256..7100afa 100644
--- a/src/commands/info/avatar.ts
+++ b/src/commands/info/avatar.ts
@@ -42,7 +42,9 @@ export default class AvatarCommand extends BushCommand {
.setTimestamp()
.setColor(util.colors.default)
.setTitle(`${user.tag}'s Avatar`)
- .setImage(user.avatarURL({ size: 2048, format: 'png', dynamic: true }));
+ .setImage(
+ user.avatarURL({ size: 2048, format: 'png', dynamic: true }) ?? 'https://cdn.discordapp.com/embed/avatars/0.png'
+ );
await message.util.reply({ embeds: [embed] });
}
}