mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 01:38:27 -04:00
Make sure the bot has manageroles permission for .aar
This commit is contained in:
@@ -16,6 +16,7 @@ namespace NadekoBot.Modules.Administration
|
|||||||
[NadekoCommand, Aliases]
|
[NadekoCommand, Aliases]
|
||||||
[RequireContext(ContextType.Guild)]
|
[RequireContext(ContextType.Guild)]
|
||||||
[UserPerm(GuildPerm.ManageRoles)]
|
[UserPerm(GuildPerm.ManageRoles)]
|
||||||
|
[BotPerm(GuildPerm.ManageRoles)]
|
||||||
public async Task AutoAssignRole([Leftover] IRole role)
|
public async Task AutoAssignRole([Leftover] IRole role)
|
||||||
{
|
{
|
||||||
var guser = (IGuildUser) ctx.User;
|
var guser = (IGuildUser) ctx.User;
|
||||||
@@ -47,6 +48,7 @@ namespace NadekoBot.Modules.Administration
|
|||||||
[NadekoCommand, Aliases]
|
[NadekoCommand, Aliases]
|
||||||
[RequireContext(ContextType.Guild)]
|
[RequireContext(ContextType.Guild)]
|
||||||
[UserPerm(GuildPerm.ManageRoles)]
|
[UserPerm(GuildPerm.ManageRoles)]
|
||||||
|
[BotPerm(GuildPerm.ManageRoles)]
|
||||||
public async Task AutoAssignRole()
|
public async Task AutoAssignRole()
|
||||||
{
|
{
|
||||||
if (!_service.TryGetRoles(ctx.Guild.Id, out var roles))
|
if (!_service.TryGetRoles(ctx.Guild.Id, out var roles))
|
||||||
|
Reference in New Issue
Block a user