21 lines
618 B
JavaScript
21 lines
618 B
JavaScript
const { Client, Message, MessageEmbed } = require("discord.js");
|
|
|
|
module.exports = {
|
|
name: "servericon",
|
|
description: "View the icon of the server",
|
|
category: "Utilities",
|
|
/**
|
|
* @param {Client} client
|
|
* @param {Message} message
|
|
* @param {String[]} args
|
|
*/
|
|
run: async (client, message, args) => {
|
|
const Embed = new MessageEmbed()
|
|
.setTitle(`Icon of ${message.guild.name}`)
|
|
.setURL(client.web)
|
|
.setTimestamp()
|
|
.setFooter(`Requested by ${message.authpr.tag}`)
|
|
.setImage(message.guild.iconURL({ dynamic: true, size: 2048 }));
|
|
message.inlineReply(Embed);
|
|
},
|
|
};
|