mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-18 08:43:57 +00:00
fix(bots/discord/commands/unmute): fix option description and embeds
This commit is contained in:
@@ -9,7 +9,7 @@ export default {
|
|||||||
data: new SlashCommandBuilder()
|
data: new SlashCommandBuilder()
|
||||||
.setName('unmute')
|
.setName('unmute')
|
||||||
.setDescription('Unmute a member')
|
.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(),
|
.toJSON(),
|
||||||
|
|
||||||
memberRequirements: {
|
memberRequirements: {
|
||||||
@@ -28,7 +28,7 @@ export default {
|
|||||||
)
|
)
|
||||||
|
|
||||||
await removeRolePreset(member, 'mute')
|
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())
|
const reply = await interaction.reply({ embeds: [embed] }).then(it => it.fetch())
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user