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()
|
const userResult: EmbedBuilder = new EmbedBuilder()
|
||||||
.setTitle(`${targetGlobal.displayName}'s information`)
|
.setTitle(`${targetGlobal.displayName}'s information`)
|
||||||
.setColor(`${guildData.color}`)
|
.setColor(`${guildData.color}`)
|
||||||
.setThumbnail(`${targetGlobal.displayAvatarURL()}`)
|
.setThumbnail(`${targetGlobal.displayAvatarURL({dynamic: true, size: 2048})}`)
|
||||||
.setFooter({
|
.setFooter({
|
||||||
text: guildData.footer
|
text: guildData.footer
|
||||||
})
|
})
|
||||||
.setImage(targetGlobal.bannerURL({
|
.setImage(targetGlobal.bannerURL({
|
||||||
size: 1024,
|
size: 2048,
|
||||||
dynamic: true
|
dynamic: true
|
||||||
}))
|
}))
|
||||||
.setDescription(`
|
.setDescription(`
|
||||||
|
|
@ -144,7 +144,7 @@ export default {
|
||||||
const serverResult: EmbedBuilder = new EmbedBuilder()
|
const serverResult: EmbedBuilder = new EmbedBuilder()
|
||||||
.setTitle(`${guild.name} Informations`)
|
.setTitle(`${guild.name} Informations`)
|
||||||
.setColor(guildData.color)
|
.setColor(guildData.color)
|
||||||
.setThumbnail(guild.iconURL({dynamic: true, size: 1024}))
|
.setThumbnail(guild.iconURL({dynamic: true, size: 2048}))
|
||||||
.setFooter({
|
.setFooter({
|
||||||
text: guildData.footer
|
text: guildData.footer
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
import { MessageFlags, SlashCommandBuilder } from 'discord.js';
|
import { MessageFlags, SlashCommandBuilder } from 'discord.js';
|
||||||
|
import emoji from '../../../assets/emoji.json' assert { type: "json" };
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data: new SlashCommandBuilder()
|
data: new SlashCommandBuilder()
|
||||||
|
|
@ -7,7 +8,7 @@ export default {
|
||||||
async execute(interaction: CommandInteraction) {
|
async execute(interaction: CommandInteraction) {
|
||||||
const time: number = Date.now();
|
const time: number = Date.now();
|
||||||
await interaction.reply({
|
await interaction.reply({
|
||||||
content: '🏓 | Pong!',
|
content: `${emoji.answer.loading} | Calculating your ping !`,
|
||||||
flags: MessageFlags.Ephemeral
|
flags: MessageFlags.Ephemeral
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue