Fixes to v+t and blacklisting

This commit is contained in:
Kwoth 2016-10-28 12:44:40 +02:00
parent ee1a7931ee
commit e8f6054c5a
2 changed files with 4 additions and 3 deletions

View File

@ -114,7 +114,7 @@ namespace NadekoBot.Modules.Administration
var channel = (ITextChannel)msg.Channel;
var guild = channel.Guild;
var botUser = guild.GetCurrentUser();
var botUser = await guild.GetCurrentUserAsync().ConfigureAwait(false);
if (!botUser.GuildPermissions.ManageRoles || !botUser.GuildPermissions.ManageChannels)
{
await channel.SendMessageAsync(":anger: `I require atleast manage roles and manage channels permissions to enable this feature (preffered Administration permission).`");
@ -166,7 +166,8 @@ namespace NadekoBot.Modules.Administration
{
var channel = (ITextChannel)msg.Channel;
var guild = channel.Guild;
if (!guild.GetCurrentUser().GuildPermissions.Administrator)
var botUser = await guild.GetCurrentUserAsync().ConfigureAwait(false);
if (!botUser.GuildPermissions.Administrator)
{
await channel.SendMessageAsync("`I need Administrator permission to do that.`").ConfigureAwait(false);
return;

View File

@ -80,7 +80,7 @@ namespace NadekoBot.Modules.Permissions
}
await uow.CompleteAsync().ConfigureAwait(false);
}
if (action == AddRemove.Rem)
if (action == AddRemove.Add)
{
TriviaGame tg;
switch (type)