style(logs/show): update the message
- now showing the channels used by wich logs - update to ephemeral message
This commit is contained in:
parent
1c4c0f5872
commit
39befde9b3
1 changed files with 8 additions and 6 deletions
|
|
@ -4,6 +4,7 @@ import {
|
||||||
ChannelType,
|
ChannelType,
|
||||||
PermissionsBitField,
|
PermissionsBitField,
|
||||||
ComponentType,
|
ComponentType,
|
||||||
|
channelMention,
|
||||||
StringSelectMenuBuilder,
|
StringSelectMenuBuilder,
|
||||||
StringSelectMenuInteraction,
|
StringSelectMenuInteraction,
|
||||||
StringSelectMenuOptionBuilder,
|
StringSelectMenuOptionBuilder,
|
||||||
|
|
@ -91,16 +92,17 @@ export default {
|
||||||
text: guildData.footer,
|
text: guildData.footer,
|
||||||
}).setDescription(`
|
}).setDescription(`
|
||||||
${guildData.logCategory ? `${emoji.answer.yes} | Categories` : `${emoji.answer.no} | Categories`}
|
${guildData.logCategory ? `${emoji.answer.yes} | Categories` : `${emoji.answer.no} | Categories`}
|
||||||
${guildData.logBot ? `${emoji.answer.yes} | Bot` : `${emoji.answer.no} | Bot`}
|
${guildData.logBot ? `${emoji.answer.yes} | Bot ${channelMention(guildData.logBot)}` : `${emoji.answer.no} | Bot`}
|
||||||
${guildData.logChannels ? `${emoji.answer.yes} | Channels` : `${emoji.answer.no} | Channels`}
|
${guildData.logChannels ? `${emoji.answer.yes} | Channels ${channelMention(guildData.logChannels)}` : `${emoji.answer.no} | Channels`}
|
||||||
${guildData.logMember ? `${emoji.answer.yes} | Member` : `${emoji.answer.no} | Member`}
|
${guildData.logMember ? `${emoji.answer.yes} | Member ${channelMention(guildData.logMember)}` : `${emoji.answer.no} | Member`}
|
||||||
${guildData.logMod ? `${emoji.answer.yes} | Moderation` : `${emoji.answer.no} | Moderation`}
|
${guildData.logMod ? `${emoji.answer.yes} | Moderation ${channelMention(guildData.logMod)}` : `${emoji.answer.no} | Moderation`}
|
||||||
${guildData.logMsg ? `${emoji.answer.yes} | Message` : `${emoji.answer.no} | Message`}
|
${guildData.logMsg ? `${emoji.answer.yes} | Message ${channelMention(guildData.logMsg)}` : `${emoji.answer.no} | Message`}
|
||||||
${guildData.logServer ? `${emoji.answer.yes} | Server` : `${emoji.answer.no} | Server`}
|
${guildData.logServer ? `${emoji.answer.yes} | Server ${channelMention(guildData.logServer)}` : `${emoji.answer.no} | Server`}
|
||||||
`);
|
`);
|
||||||
|
|
||||||
await interaction.reply({
|
await interaction.reply({
|
||||||
embeds: [logsData],
|
embeds: [logsData],
|
||||||
|
flags: MessageFlags.Ephemeral,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue