nyx/command/Information/servericon.js
2021-09-06 18:38:25 +08:00

17 lines
562 B
JavaScript

const { MessageEmbed } = require("discord.js");
module.exports = {
name: "servericon",
description: "View the icon of the server",
category: "Information",
type: "CHAT_INPUT",
run: async (client, interaction, args) => {
const Embed = new MessageEmbed()
.setTitle(`Icon of ${interaction.guild.name}`)
.setURL(client.web)
.setTimestamp()
.setFooter(`Requested by ${interaction.user.tag}`)
.setImage(interaction.guild.iconURL({ dynamic: true, size: 2048 }));
await interaction.followUp({ embeds: [Embed] });
},
};