Server Icon for Embed Thumbnail

Anybody know how to get a server icon for a thumbnail?
const { SlashCommandBuilder, EmbedBuilder, Guild } = require('discord.js');

module.exports = {
data: new SlashCommandBuilder()
.setName('info')
.setDescription('Information on the Server.'),
async execute(interaction) {

const serverEmbed = new EmbedBuilder ()
.setTitle(`${Guild.name}`)
.setColor('Random')
.setThumbnail(iconURL)



await interaction.reply({ embeds: [serverEmbed] });
}
}
const { SlashCommandBuilder, EmbedBuilder, Guild } = require('discord.js');

module.exports = {
data: new SlashCommandBuilder()
.setName('info')
.setDescription('Information on the Server.'),
async execute(interaction) {

const serverEmbed = new EmbedBuilder ()
.setTitle(`${Guild.name}`)
.setColor('Random')
.setThumbnail(iconURL)



await interaction.reply({ embeds: [serverEmbed] });
}
}
3 Replies
d.js toolkit
d.js toolkit3w ago
d.js docs
d.js docs3w ago
documentation suggestion for @Delirious: :method: Guild#iconURL() discord.js@14.24.2 The URL to this guild's icon.
d.js toolkit
d.js toolkit3w ago
The thread owner has marked this issue as solved.

Did you find this page helpful?