nyx/commands/Utilities/servericon.js
2021-07-13 11:17:39 +08:00

16 lines
520 B
JavaScript

const { Client, Message, MessageEmbed } = require("discord.js");
module.exports = {
name: "servericon",
description: "View the icon of the server",
category: "Utilities",
run: async (client, message, args) => {
const Embed = new MessageEmbed()
.setTitle(`Icon of ${message.guild.name}`)
.setURL(client.web)
.setTimestamp()
.setFooter(`Requested by ${message.author.tag}`)
.setImage(message.guild.iconURL({ dynamic: true, size: 2048 }));
message.inlineReply(Embed);
},
};