nyx/commands/Utilities/servericon.js

22 lines
618 B
JavaScript
Raw Normal View History

2021-06-12 12:53:51 +02:00
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);
},
};