nyx/command/Information/servericon.js

18 lines
562 B
JavaScript
Raw Normal View History

2021-09-06 12:38:25 +02:00
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] });
},
};