Skip to content
Snippets Groups Projects
Commit 2d13fd04 authored by Reviath's avatar Reviath
Browse files

Added icon command.

parent 10a10c5e
Branches
Tags
No related merge requests found
const Discord = require('discord.js');
exports.run = async (client, message, args, connection) => {
const embed = new Discord.MessageEmbed()
.setImage(message.guild.iconURL())
.setColor(0x0093f0);
message.channel.send(embed).catch(e => {
message.channel.send(`Cannot send an embed.`).catch(e => {
return;
});
return;
});
};
module.exports.help = {
name: 'icon',
aliases: ['guild_icon']
};
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment