Last active
April 23, 2022 03:31
-
-
Save jinwoo-lee-github/90e8f88f792552d7f066e8a36de1cb23 to your computer and use it in GitHub Desktop.
add role
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var bot = Context.Guild.GetUser(0); | |
Log.Information(roleToSelect.Permissions.ToString()); | |
if (bot.Roles.Contains(roleToSelect) == false) | |
{ | |
Log.Debug("has permession"); | |
await bot.AddRoleAsync(roleToSelect); | |
} | |
else | |
{ | |
Log.Debug("has not permession"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment