fix(bots/discord/commands/unmute): fix option description and embeds

This commit is contained in:
Palm
2024-06-24 08:49:38 +07:00
committed by PalmDevs
parent 399dca7153
commit 7fdf8c0dc7

View File

@@ -9,7 +9,7 @@ export default {
data: new SlashCommandBuilder()
.setName('unmute')
.setDescription('Unmute a member')
.addUserOption(option => option.setName('member').setRequired(true).setDescription('The member to mute'))
.addUserOption(option => option.setName('member').setRequired(true).setDescription('The member to unmute'))
.toJSON(),
memberRequirements: {
@@ -28,7 +28,7 @@ export default {
)
await removeRolePreset(member, 'mute')
const embed = createModerationActionEmbed('Muted', user, interaction.user)
const embed = createModerationActionEmbed('Unmuted', user, interaction.user)
const reply = await interaction.reply({ embeds: [embed] }).then(it => it.fetch())