From fb27a1dd9013132730c657d7504867b5237f76d1 Mon Sep 17 00:00:00 2001 From: Kwoth Date: Wed, 19 Oct 2016 07:16:47 +0200 Subject: [PATCH] small fix --- .../Modules/Administration/Administration.cs | 11 +++++++++++ src/NadekoBot/Modules/Gambling/Gambling.cs | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/NadekoBot/Modules/Administration/Administration.cs b/src/NadekoBot/Modules/Administration/Administration.cs index fb31e9ba..93b90aa0 100644 --- a/src/NadekoBot/Modules/Administration/Administration.cs +++ b/src/NadekoBot/Modules/Administration/Administration.cs @@ -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)] diff --git a/src/NadekoBot/Modules/Gambling/Gambling.cs b/src/NadekoBot/Modules/Gambling/Gambling.cs index 33278f2d..ac57940d 100644 --- a/src/NadekoBot/Modules/Gambling/Gambling.cs +++ b/src/NadekoBot/Modules/Gambling/Gambling.cs @@ -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;