Make browser and mobile embeds not suck

This commit is contained in:
Daniel Odendahl Jr
2018-10-03 17:14:32 +00:00
parent bf57e5ad04
commit 211afce0dd
5 changed files with 6 additions and 11 deletions
+2 -2
View File
@@ -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}`)
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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)
+1 -6
View File
@@ -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
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "92.1.1",
"version": "92.1.2",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {