mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-07 06:45:31 +02:00
Fix
This commit is contained in:
@@ -21,7 +21,7 @@ module.exports = class MessageInfoCommand extends Command {
|
||||
}
|
||||
|
||||
run(msg, { message }) {
|
||||
const format = msg.author.avatar && msg.author.avatar.startsWith('a_') ? 'gif' : 'png';
|
||||
const format = message.author.avatar && message.author.avatar.startsWith('a_') ? 'gif' : 'png';
|
||||
const embed = new MessageEmbed()
|
||||
.setColor(message.member ? message.member.displayHexColor : 0x00AE86)
|
||||
.setThumbnail(message.author.displayAvatarURL({ format }))
|
||||
|
||||
@@ -30,7 +30,7 @@ module.exports = class UserInfoCommand extends Command {
|
||||
}
|
||||
|
||||
async run(msg, { user }) {
|
||||
const format = msg.author.avatar && msg.author.avatar.startsWith('a_') ? 'gif' : 'png';
|
||||
const format = user.avatar && user.avatar.startsWith('a_') ? 'gif' : 'png';
|
||||
const embed = new MessageEmbed()
|
||||
.setThumbnail(user.displayAvatarURL({ format }))
|
||||
.addField('❯ Name', user.tag, true)
|
||||
|
||||
Reference in New Issue
Block a user