Skip to content

Commit 26e8e72

Browse files
author
Vivien Mouret
committed
⚡️ optimize guild
1 parent 6e313cf commit 26e8e72

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

slash/guild.js

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,23 @@ module.exports = {
88
.setDescription('Liste les serveurs où daftbot règne'),
99
async execute(message, client, language, initDateTime) {
1010
await message.reply({
11-
'content': `${client.user.username} ${language.guild}\n${client.guilds.cache.map(guild => guild.name).join('\n ')}`,
11+
'content': '',
12+
'tts': false,
13+
'embeds': [{
14+
'type': 'rich',
15+
'title': `Guild`,
16+
'description': `${client.user.username} ${language.guild}\n${client.guilds.cache.map(guild => guild.name).join('\n ')}`,
17+
'color': randomColor(),
18+
'author': {
19+
'name': message.user.username,
20+
'icon_url': message.user.avatarURL({ format: 'png', dynamic: true, size: 1024 })
21+
},
22+
'footer': {
23+
'text': '/guild',
24+
'icon_url': 'https://cdn.discordapp.com/app-icons/757955750164430980/94a997258883caba5f553f98aea8df59.png?size=256',
25+
'proxy_icon_url': 'https://discord.gg/ucwnMKKxZe'
26+
}
27+
}],
1228
'ephemeral': true
1329
});
1430
}

0 commit comments

Comments
 (0)