Updated command description

This commit is contained in:
Kwoth 2017-03-10 23:10:42 +01:00
parent 93c28918d0
commit defde0ce34
3 changed files with 5 additions and 5 deletions

View File

@ -295,7 +295,7 @@ namespace NadekoBot.Modules.Administration
[Priority(0)] [Priority(0)]
public async Task Mute(int minutes, IGuildUser user) public async Task Mute(int minutes, IGuildUser user)
{ {
if (minutes < 1) if (minutes < 1 || minutes > 1440)
return; return;
try try
{ {

View File

@ -4956,7 +4956,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// 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..
/// </summary> /// </summary>
public static string mute_desc { public static string mute_desc {
get { get {
@ -4965,7 +4965,7 @@ namespace NadekoBot.Resources {
} }
/// <summary> /// <summary>
/// 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`.
/// </summary> /// </summary>
public static string mute_usage { public static string mute_usage {
get { get {

View File

@ -589,10 +589,10 @@
<value>mute</value> <value>mute</value>
</data> </data>
<data name="mute_desc" xml:space="preserve"> <data name="mute_desc" xml:space="preserve">
<value>Mutes a mentioned user both from speaking and chatting.</value> <value>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.</value>
</data> </data>
<data name="mute_usage" xml:space="preserve"> <data name="mute_usage" xml:space="preserve">
<value>`{0}mute @Someone`</value> <value>`{0}mute @Someone` or `{0}mute 30 @Someone`</value>
</data> </data>
<data name="voiceunmute_cmd" xml:space="preserve"> <data name="voiceunmute_cmd" xml:space="preserve">
<value>voiceunmute</value> <value>voiceunmute</value>