refractor(utils/emoji): using the emoji json on the firsts commands of utils.
This commit is contained in:
parent
4f9184e29d
commit
1698d77979
2 changed files with 5 additions and 4 deletions
|
|
@ -108,12 +108,12 @@ export default {
|
|||
const userResult: EmbedBuilder = new EmbedBuilder()
|
||||
.setTitle(`${targetGlobal.displayName}'s information`)
|
||||
.setColor(`${guildData.color}`)
|
||||
.setThumbnail(`${targetGlobal.displayAvatarURL()}`)
|
||||
.setThumbnail(`${targetGlobal.displayAvatarURL({dynamic: true, size: 2048})}`)
|
||||
.setFooter({
|
||||
text: guildData.footer
|
||||
})
|
||||
.setImage(targetGlobal.bannerURL({
|
||||
size: 1024,
|
||||
size: 2048,
|
||||
dynamic: true
|
||||
}))
|
||||
.setDescription(`
|
||||
|
|
@ -144,7 +144,7 @@ export default {
|
|||
const serverResult: EmbedBuilder = new EmbedBuilder()
|
||||
.setTitle(`${guild.name} Informations`)
|
||||
.setColor(guildData.color)
|
||||
.setThumbnail(guild.iconURL({dynamic: true, size: 1024}))
|
||||
.setThumbnail(guild.iconURL({dynamic: true, size: 2048}))
|
||||
.setFooter({
|
||||
text: guildData.footer
|
||||
})
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
import { MessageFlags, SlashCommandBuilder } from 'discord.js';
|
||||
import emoji from '../../../assets/emoji.json' assert { type: "json" };
|
||||
|
||||
export default {
|
||||
data: new SlashCommandBuilder()
|
||||
|
|
@ -7,7 +8,7 @@ export default {
|
|||
async execute(interaction: CommandInteraction) {
|
||||
const time: number = Date.now();
|
||||
await interaction.reply({
|
||||
content: '🏓 | Pong!',
|
||||
content: `${emoji.answer.loading} | Calculating your ping !`,
|
||||
flags: MessageFlags.Ephemeral
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue