Holana/slash/servericon.js

26 lines
794 B
JavaScript
Raw Normal View History

2023-04-29 09:59:08 +00:00
const { EmbedBuilder, ActionRowBuilder, ButtonBuilder, ButtonStyle } = require('discord.js');
module.exports = {
name: 'servericon',
description: 'sends the Server Icon',
run: async (client, interaction) => {
const row = new ActionRowBuilder()
.addComponents(
new ButtonBuilder()
.setLabel(`Server Icon URL`)
.setStyle(ButtonStyle.Link)
.setURL(`${interaction.guild.iconURL()}?size=1024`))
let embed = new EmbedBuilder()
.setAuthor({ name: interaction.guild.name })
.setImage(interaction.guild.iconURL({ dynamic: true, size: 1024 }))
.setColor('#2F3136')
.setFooter({
text: `©️ Holana`,
iconURL: ('https://ellie.gcoms.xyz/Ellise')
})
interaction.reply({embeds: [embed], components: [row]});
}
}