Skip to content
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.

Commit

Permalink
Server Icon added
Browse files Browse the repository at this point in the history
  • Loading branch information
sandarutharuneth authored Aug 27, 2022
1 parent 65f9aaa commit 49de437
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions slash/servericon.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
const { MessageEmbed, MessageActionRow, MessageButton } = require('discord.js');

module.exports = {
name: 'servericon',
description: 'sends the Server Icon',
run: async (client, interaction) => {

const row = new MessageActionRow()
.addComponents(
new MessageButton()
.setLabel(`Server Icon URL`)
.setStyle('LINK')
.setURL(`${interaction.guild.iconURL()}?size=1024`))

let embed = new MessageEmbed()
.setAuthor({ name: interaction.guild.name })
.setImage(interaction.guild.iconURL({ dynamic: true, size: 512 }))
.setColor('#2F3136')
.setFooter({
text: `©️ IVON`,
iconURL: ('https://i.imgur.com/sB02Hbz.png')
})
interaction.reply({embeds: [embed], components: [row]});

}
}

0 comments on commit 49de437

Please sign in to comment.