mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 15:56:52 +02:00
Idk what this is but I'm gonna try it
This commit is contained in:
@@ -26,7 +26,7 @@ module.exports = class SteamCardCommand extends commando.Command {
|
||||
}
|
||||
console.log(`[Command] ${message.content}`);
|
||||
const user = args.user;
|
||||
const userDisplayName = message.guild.member(user).displayName || user.username;
|
||||
const userDisplayName = message.guild ? message.member(user).displayName : user.username;
|
||||
let userAvatar = user.displayAvatarURL;
|
||||
userAvatar = userAvatar.replace('.jpg', '.png');
|
||||
userAvatar = userAvatar.replace('.gif', '.png');
|
||||
|
||||
Reference in New Issue
Block a user