mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-12 08:14:47 +02:00
Beta for Non-Guild Only Steam Card
This commit is contained in:
@@ -12,7 +12,6 @@ module.exports = class SteamCardCommand extends commando.Command {
|
|||||||
memberName: 'steamcard',
|
memberName: 'steamcard',
|
||||||
description: 'Put an avatar on a Steam Card. (;steamcard @User)',
|
description: 'Put an avatar on a Steam Card. (;steamcard @User)',
|
||||||
examples: [';steamcard @user'],
|
examples: [';steamcard @user'],
|
||||||
guildOnly: true,
|
|
||||||
args: [{
|
args: [{
|
||||||
key: 'user',
|
key: 'user',
|
||||||
prompt: 'Which user would you like to edit the avatar of?',
|
prompt: 'Which user would you like to edit the avatar of?',
|
||||||
@@ -27,7 +26,7 @@ module.exports = class SteamCardCommand extends commando.Command {
|
|||||||
}
|
}
|
||||||
console.log(`[Command] ${message.content}`);
|
console.log(`[Command] ${message.content}`);
|
||||||
const user = args.user;
|
const user = args.user;
|
||||||
const userDisplayName = message.guild.member(args.user).displayName;
|
const userDisplayName = message.guild.member(user).displayName || user.username;
|
||||||
let userAvatar = user.displayAvatarURL;
|
let userAvatar = user.displayAvatarURL;
|
||||||
userAvatar = userAvatar.replace('.jpg', '.png');
|
userAvatar = userAvatar.replace('.jpg', '.png');
|
||||||
userAvatar = userAvatar.replace('.gif', '.png');
|
userAvatar = userAvatar.replace('.gif', '.png');
|
||||||
|
|||||||
Reference in New Issue
Block a user