Clarification

This commit is contained in:
Kwoth 2016-10-25 13:10:05 +02:00
parent 916612311b
commit e0c7ffa13a

View File

@ -117,9 +117,19 @@ namespace NadekoBot.Modules.Administration
var botUser = guild.GetCurrentUser(); var botUser = guild.GetCurrentUser();
if (!botUser.GuildPermissions.ManageRoles || !botUser.GuildPermissions.ManageChannels) if (!botUser.GuildPermissions.ManageRoles || !botUser.GuildPermissions.ManageChannels)
{ {
await channel.SendMessageAsync(":anger: `I require manage roles and manage channels permissions to enable this feature.`"); await channel.SendMessageAsync(":anger: `I require atleast manage roles and manage channels permissions to enable this feature (preffered Administration permission).`");
return; return;
} }
if (!botUser.GuildPermissions.Administrator)
{
try
{
await channel.SendMessageAsync(":warning: `You are enabling this feature and I do not have ADMINISTRATOR permissions, " +
"this may cause some issues, and you will have to clean up text channels yourself afterwards.`");
}
catch { ]}
}
try try
{ {
bool isEnabled; bool isEnabled;
@ -156,9 +166,9 @@ namespace NadekoBot.Modules.Administration
{ {
var channel = (ITextChannel)msg.Channel; var channel = (ITextChannel)msg.Channel;
var guild = channel.Guild; var guild = channel.Guild;
if (!guild.GetCurrentUser().GuildPermissions.ManageChannels) if (!guild.GetCurrentUser().GuildPermissions.Administrator)
{ {
await channel.SendMessageAsync("`I have insufficient permission to do that.`").ConfigureAwait(false); await channel.SendMessageAsync("`I need Administrator permission to do that.`").ConfigureAwait(false);
return; return;
} }