Fixed kick permission requirement
This commit is contained in:
		@@ -275,6 +275,7 @@ namespace NadekoBot.Modules.Administration
 | 
			
		||||
 | 
			
		||||
        [NadekoCommand, Usage, Description, Aliases]
 | 
			
		||||
        [RequireContext(ContextType.Guild)]
 | 
			
		||||
        [RequirePermission(GuildPermission.KickMembers)]
 | 
			
		||||
        public async Task Kick(IUserMessage umsg, IGuildUser user, [Remainder] string msg = null)
 | 
			
		||||
        {
 | 
			
		||||
            var channel = (ITextChannel)umsg.Channel;
 | 
			
		||||
@@ -695,6 +696,7 @@ namespace NadekoBot.Modules.Administration
 | 
			
		||||
 | 
			
		||||
        [NadekoCommand, Usage, Description, Aliases]
 | 
			
		||||
        [RequireContext(ContextType.Guild)]
 | 
			
		||||
        [OwnerOnly]
 | 
			
		||||
        public async Task Donadd(IUserMessage umsg, IUser donator, int amount)
 | 
			
		||||
        {
 | 
			
		||||
            var channel = (ITextChannel)umsg.Channel;
 | 
			
		||||
 
 | 
			
		||||
@@ -49,9 +49,16 @@ namespace NadekoBot.Modules.CustomReactions
 | 
			
		||||
                        var reaction = reactions.Where(cr => cr.Trigger == umsg.Content).Shuffle().FirstOrDefault();
 | 
			
		||||
                        if (reaction != null)
 | 
			
		||||
                        {
 | 
			
		||||
                            await channel.SendMessageAsync(reaction.Response).ConfigureAwait(false);
 | 
			
		||||
                            try { await channel.SendMessageAsync(reaction.Response).ConfigureAwait(false); } catch { }
 | 
			
		||||
                            return;
 | 
			
		||||
                        }
 | 
			
		||||
                    }
 | 
			
		||||
                    var greaction = GlobalReactions.Where(cr => cr.Trigger == umsg.Content).Shuffle().FirstOrDefault();
 | 
			
		||||
                    if (greaction != null)
 | 
			
		||||
                    {
 | 
			
		||||
                        try { await channel.SendMessageAsync(greaction.Response).ConfigureAwait(false); } catch { }
 | 
			
		||||
                        return;
 | 
			
		||||
                    }
 | 
			
		||||
                });
 | 
			
		||||
                return Task.CompletedTask;
 | 
			
		||||
            };
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user