mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-15 15:24:15 +01:00
add more info
This commit is contained in:
parent
698890f991
commit
ef93a5f55a
2 changed files with 18 additions and 6 deletions
|
|
@ -130,10 +130,11 @@ public class DiscordBotServices
|
|||
await RetryAsync(restUser.AddRoleAsync(registeredRole.Value), user, $"Add Registered Role").ConfigureAwait(false);
|
||||
}
|
||||
|
||||
public async Task AddRegisteredRoleAsync(RestGuildUser user, RestRole role)
|
||||
public async Task<bool> AddRegisteredRoleAsync(RestGuildUser user, RestRole role)
|
||||
{
|
||||
if (user.RoleIds.Contains(role.Id)) return;
|
||||
if (user.RoleIds.Contains(role.Id)) return false;
|
||||
await RetryAsync(user.AddRoleAsync(role), user, $"Add Registered Role", false).ConfigureAwait(false);
|
||||
return true;
|
||||
}
|
||||
|
||||
public async Task KickUserAsync(RestGuildUser user)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue