More info stuffs

This commit is contained in:
Daniel Odendahl Jr
2017-10-06 01:50:18 +00:00
parent 292ff007e5
commit 0f3d9abd83
8 changed files with 109 additions and 8 deletions
+26
View File
@@ -0,0 +1,26 @@
const { Command } = require('discord.js-commando');
module.exports = class EmojiImageCommand extends Command {
constructor(client) {
super(client, {
name: 'emoji-image',
aliases: ['bigify-emoji', 'emoji-url', 'big-emoji'],
group: 'guild-info',
memberName: 'emoji-image',
description: 'Responds with an emoji\'s full-scale image.',
guildOnly: true,
clientPermissions: ['ATTACH_FILES'],
args: [
{
key: 'emoji',
prompt: 'Which emoji would you like to get the image of?',
type: 'emoji'
}
]
});
}
run(msg, { emoji }) {
return msg.say({ files: [emoji.url] });
}
};
+38
View File
@@ -0,0 +1,38 @@
const { Command } = require('discord.js-commando');
const { MessageEmbed } = require('discord.js');
module.exports = class EmojiInfoCommand extends Command {
constructor(client) {
super(client, {
name: 'emoji-info',
aliases: ['emoji'],
group: 'guild-info',
memberName: 'emoji-info',
description: 'Responds with detailed information on an emoji.',
guildOnly: true,
clientPermissions: ['EMBED_LINKS'],
args: [
{
key: 'emoji',
prompt: 'Which emoji would you like to get information on?',
type: 'emoji'
}
]
});
}
run(msg, { emoji }) {
const embed = new MessageEmbed()
.setColor(0x00AE86)
.setThumbnail(emoji.url)
.addField(' Name',
emoji.name, true)
.addField(' ID',
emoji.id, true)
.addField(' Creation Date',
emoji.createdAt.toDateString(), true)
.addField(' External',
emoji.managed ? 'Yes' : 'No', true);
return msg.embed(embed);
}
};
@@ -1,10 +1,10 @@
const { Command } = require('discord.js-commando');
module.exports = class EmojiCommand extends Command {
module.exports = class EmojiListCommand extends Command {
constructor(client) {
super(client, {
name: 'emoji',
aliases: ['emojis', 'emoji-list'],
name: 'emoji-list',
aliases: ['emojis'],
group: 'guild-info',
memberName: 'emoji',
description: 'Responds with a list of the server\'s custom emoji.',
@@ -6,7 +6,7 @@ module.exports = class UserInfoCommand extends Command {
super(client, {
name: 'user-info',
aliases: ['user', 'member', 'member-info'],
group: 'user-info',
group: 'guild-info',
memberName: 'user-info',
description: 'Responds with detailed information on a user.',
guildOnly: true,
@@ -5,7 +5,7 @@ module.exports = class AvatarCommand extends Command {
super(client, {
name: 'avatar',
aliases: ['profile-picture', 'profile-pic'],
group: 'user-info',
group: 'random',
memberName: 'avatar',
description: 'Responds with a link to a user\'s avatar.',
args: [