mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-06 14:20:51 +02:00
Make browser and mobile embeds not suck
This commit is contained in:
@@ -23,8 +23,8 @@ module.exports = class MessageInfoCommand extends Command {
|
||||
run(msg, { message }) {
|
||||
const embed = new MessageEmbed()
|
||||
.setColor(message.member ? message.member.displayHexColor : 0x00AE86)
|
||||
.setThumbnail(message.author.displayAvatarURL())
|
||||
.setAuthor(msg.author.tag, msg.author.displayAvatarURL())
|
||||
.setThumbnail(message.author.displayAvatarURL({ format: 'png' }))
|
||||
.setAuthor(msg.author.tag, msg.author.displayAvatarURL({ format: 'png' }))
|
||||
.setDescription(message.content)
|
||||
.setTimestamp(message.createdAt)
|
||||
.setFooter(`ID: ${message.id}`)
|
||||
|
||||
@@ -21,7 +21,7 @@ module.exports = class ServerInfoCommand extends Command {
|
||||
if (!msg.guild.members.has(msg.guild.ownerID)) await msg.guild.members.fetch(msg.guild.ownerID);
|
||||
const embed = new MessageEmbed()
|
||||
.setColor(0x00AE86)
|
||||
.setThumbnail(msg.guild.iconURL())
|
||||
.setThumbnail(msg.guild.iconURL({ format: 'png' }))
|
||||
.addField('❯ Name', msg.guild.name, true)
|
||||
.addField('❯ ID', msg.guild.id, true)
|
||||
.addField('❯ Region', msg.guild.region.toUpperCase(), true)
|
||||
|
||||
@@ -31,7 +31,7 @@ module.exports = class UserInfoCommand extends Command {
|
||||
|
||||
async run(msg, { user }) {
|
||||
const embed = new MessageEmbed()
|
||||
.setThumbnail(user.displayAvatarURL())
|
||||
.setThumbnail(user.displayAvatarURL({ format: 'png' }))
|
||||
.addField('❯ Name', user.tag, true)
|
||||
.addField('❯ ID', user.id, true)
|
||||
.addField('❯ Discord Join Date', moment.utc(user.createdAt).format('MM/DD/YYYY h:mm A'), true)
|
||||
|
||||
@@ -20,11 +20,6 @@ module.exports = class EmbedCommand extends Command {
|
||||
}
|
||||
|
||||
run(msg, { text }) {
|
||||
const embed = new MessageEmbed()
|
||||
.setAuthor(msg.author.tag, msg.author.displayAvatarURL())
|
||||
.setColor(0x00AE86)
|
||||
.setTimestamp()
|
||||
.setDescription(text);
|
||||
return msg.embed(embed);
|
||||
return msg.embed(new MessageEmbed().setDescription(text));
|
||||
}
|
||||
};
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "92.1.1",
|
||||
"version": "92.1.2",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user