mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-13 14:24:15 +01:00
add registered role to bot
This commit is contained in:
parent
600bd1893e
commit
86ae9d40e0
6 changed files with 158 additions and 15 deletions
|
|
@ -2,6 +2,7 @@
|
|||
using Discord;
|
||||
using MareSynchronosShared.Utils;
|
||||
using MareSynchronosShared.Utils.Configuration;
|
||||
using Discord.WebSocket;
|
||||
|
||||
namespace MareSynchronosServices.Discord;
|
||||
|
||||
|
|
@ -100,6 +101,8 @@ public partial class MareWizardModule
|
|||
await ModifyModalInteraction(eb, cb).ConfigureAwait(false);
|
||||
|
||||
await _botServices.LogToChannel($"{Context.User.Mention} DELETE SUCCESS: {uid}").ConfigureAwait(false);
|
||||
|
||||
await _botServices.RemoveRegisteredRoleAsync(Context.Interaction.User).ConfigureAwait(false);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue