diff --git a/src/NadekoBot/Modules/Administration/Commands/MuteCommands.cs b/src/NadekoBot/Modules/Administration/Commands/MuteCommands.cs index 7504f0d9..0c49ef9e 100644 --- a/src/NadekoBot/Modules/Administration/Commands/MuteCommands.cs +++ b/src/NadekoBot/Modules/Administration/Commands/MuteCommands.cs @@ -295,7 +295,7 @@ namespace NadekoBot.Modules.Administration [Priority(0)] public async Task Mute(int minutes, IGuildUser user) { - if (minutes < 1) + if (minutes < 1 || minutes > 1440) return; try { diff --git a/src/NadekoBot/Resources/CommandStrings.Designer.cs b/src/NadekoBot/Resources/CommandStrings.Designer.cs index 04f58fb5..70ce3dee 100644 --- a/src/NadekoBot/Resources/CommandStrings.Designer.cs +++ b/src/NadekoBot/Resources/CommandStrings.Designer.cs @@ -4956,7 +4956,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to Mutes a mentioned user both from speaking and chatting.. + /// Looks up a localized string similar to Mutes a mentioned user both from speaking and chatting. You can also specify time in minutes (up to 1440) for how long the user should be muted.. /// public static string mute_desc { get { @@ -4965,7 +4965,7 @@ namespace NadekoBot.Resources { } /// - /// Looks up a localized string similar to `{0}mute @Someone`. + /// Looks up a localized string similar to `{0}mute @Someone` or `{0}mute 30 @Someone`. /// public static string mute_usage { get { diff --git a/src/NadekoBot/Resources/CommandStrings.resx b/src/NadekoBot/Resources/CommandStrings.resx index d81c15d7..8fb82e7c 100644 --- a/src/NadekoBot/Resources/CommandStrings.resx +++ b/src/NadekoBot/Resources/CommandStrings.resx @@ -589,10 +589,10 @@ mute - Mutes a mentioned user both from speaking and chatting. + Mutes a mentioned user both from speaking and chatting. You can also specify time in minutes (up to 1440) for how long the user should be muted. - `{0}mute @Someone` + `{0}mute @Someone` or `{0}mute 30 @Someone` voiceunmute