Пример #1
0
        public static async Task RemoveRoleAsync(SocketGuildUser user, SocketRole role)
        {
            await user.RemoveRoleAsync(role).ConfigureAwait(true);

            AuditLog.AddLog($"Removed {role.Name} from {user.Username}#{user.Discriminator}");
        }
Пример #2
0
        public static async Task AssignRoleAsync(SocketGuildUser user, SocketRole role)
        {
            await user.AddRoleAsync(role).ConfigureAwait(true);

            AuditLog.AddLog($"Assigned {role.Name} to {user.Username}#{user.Discriminator}");
        }