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)]
public async Task Mute(int minutes, IGuildUser user)
{
if (minutes < 1)
if (minutes < 1 || minutes > 1440)
return;
try
{

View File

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

View File

@ -589,10 +589,10 @@
<value>mute</value>
</data>
<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 name="mute_usage" xml:space="preserve">
<value>`{0}mute @Someone`</value>
<value>`{0}mute @Someone` or `{0}mute 30 @Someone`</value>
</data>
<data name="voiceunmute_cmd" xml:space="preserve">
<value>voiceunmute</value>