diff --git a/src/NadekoBot/Modules/Administration/Administration.cs b/src/NadekoBot/Modules/Administration/Administration.cs index 24e4710c..7627773c 100644 --- a/src/NadekoBot/Modules/Administration/Administration.cs +++ b/src/NadekoBot/Modules/Administration/Administration.cs @@ -468,18 +468,12 @@ namespace NadekoBot.Modules.Administration [NadekoCommand, Usage, Description, Aliases] [RequireContext(ContextType.Guild)] [RequirePermission(GuildPermission.MuteMembers)] - public async Task Unmute(IUserMessage umsg, params IGuildUser[] users) + public async Task VoiceUnmute(IUserMessage umsg, IGuildUser user) { var channel = (ITextChannel)umsg.Channel; - - if (!users.Any()) - return; try { - foreach (var u in users) - { - await u.ModifyAsync(usr => usr.Mute = false).ConfigureAwait(false); - } + await user.ModifyAsync(usr => usr.Mute = false).ConfigureAwait(false); await channel.SendMessageAsync("Unmute successful").ConfigureAwait(false); } catch diff --git a/src/NadekoBot/Resources/CommandStrings.Designer.cs b/src/NadekoBot/Resources/CommandStrings.Designer.cs index 5c3e1e1c..811dc7b1 100644 --- a/src/NadekoBot/Resources/CommandStrings.Designer.cs +++ b/src/NadekoBot/Resources/CommandStrings.Designer.cs @@ -7187,33 +7187,6 @@ namespace NadekoBot.Resources { } } - /// - /// Looks up a localized string similar to unmute. - /// - public static string unmute_cmd { - get { - return ResourceManager.GetString("unmute_cmd", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to Unmutes mentioned user or users. . - /// - public static string unmute_desc { - get { - return ResourceManager.GetString("unmute_desc", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to `.unmute "@Someguy"` or `.unmute "@Someguy" "@Someguy"`. - /// - public static string unmute_usage { - get { - return ResourceManager.GetString("unmute_usage", resourceCulture); - } - } - /// /// Looks up a localized string similar to unstuck. /// @@ -7619,6 +7592,33 @@ namespace NadekoBot.Resources { } } + /// + /// Looks up a localized string similar to voiceunmute. + /// + public static string voiceunmute_cmd { + get { + return ResourceManager.GetString("voiceunmute_cmd", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Gives a previously voice-muted user a permission to speak. . + /// + public static string voiceunmute_desc { + get { + return ResourceManager.GetString("voiceunmute_desc", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to `.unmute @Someguy`. + /// + public static string voiceunmute_usage { + get { + return ResourceManager.GetString("voiceunmute_usage", resourceCulture); + } + } + /// /// Looks up a localized string similar to volume vol. /// diff --git a/src/NadekoBot/Resources/CommandStrings.resx b/src/NadekoBot/Resources/CommandStrings.resx index 48c5bc27..2538e463 100644 --- a/src/NadekoBot/Resources/CommandStrings.resx +++ b/src/NadekoBot/Resources/CommandStrings.resx @@ -621,14 +621,14 @@ `.mute @Someone` - - unmute + + voiceunmute - - Unmutes mentioned user or users. + + Gives a previously voice-muted user a permission to speak. - - `.unmute "@Someguy"` or `.unmute "@Someguy" "@Someguy"` + + `.unmute @Someguy` deafen deaf