small fix

This commit is contained in:
Kwoth 2016-10-19 07:16:47 +02:00
parent 3859e00e88
commit fb27a1dd90
2 changed files with 13 additions and 2 deletions

View File

@ -357,6 +357,17 @@ namespace NadekoBot.Modules.Administration
}
}
[NadekoCommand, Usage, Description, Aliases]
[RequireContext(ContextType.Guild)]
public async Task SetMuteRole(IUserMessage imsg, [Remainder] string name)
{
var channel = (ITextChannel)imsg.Channel;
name = name.Trim();
if (string.IsNullOrWhiteSpace(name))
return;
}
[NadekoCommand, Usage, Description, Aliases]
[RequireContext(ContextType.Guild)]
[RequirePermission(GuildPermission.MuteMembers)]

View File

@ -48,7 +48,7 @@ namespace NadekoBot.Modules.Gambling
}
[NadekoCommand, Usage, Description, Aliases]
[Priority(1)]
[Priority(0)]
public async Task Cash(IUserMessage umsg, [Remainder] IUser user = null)
{
var channel = umsg.Channel;
@ -66,7 +66,7 @@ namespace NadekoBot.Modules.Gambling
}
[NadekoCommand, Usage, Description, Aliases]
[Priority(0)]
[Priority(1)]
public async Task Cash(IUserMessage umsg, ulong userId)
{
var channel = umsg.Channel;