mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-12 22:17:22 +01:00
adapt register and relink module
This commit is contained in:
parent
4e88c6e68f
commit
48ec4f0c27
4 changed files with 35 additions and 29 deletions
|
|
@ -14,6 +14,8 @@ using StackExchange.Redis;
|
|||
|
||||
namespace MareSynchronosServices.Discord;
|
||||
|
||||
// todo: remove all this crap at some point
|
||||
|
||||
public class LodestoneModal : IModal
|
||||
{
|
||||
public string Title => "Verify with Lodestone";
|
||||
|
|
@ -168,7 +170,7 @@ public class MareModule : InteractionModuleBase
|
|||
else
|
||||
{
|
||||
await DeferAsync(ephemeral: true).ConfigureAwait(false);
|
||||
_botServices.VerificationQueue.Enqueue(new KeyValuePair<ulong, Action<IServiceProvider>>(Context.User.Id, async (sp) => await HandleVerifyAsync((SocketSlashCommand)Context.Interaction, sp)));
|
||||
//_botServices.VerificationQueue.Enqueue(new KeyValuePair<ulong, Action<IServiceProvider>>(Context.User.Id, async (sp) => await HandleVerifyAsync((SocketSlashCommand)Context.Interaction, sp)));
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
|
@ -205,7 +207,7 @@ public class MareModule : InteractionModuleBase
|
|||
else
|
||||
{
|
||||
await DeferAsync(ephemeral: true).ConfigureAwait(false);
|
||||
_botServices.VerificationQueue.Enqueue(new KeyValuePair<ulong, Action<IServiceProvider>>(Context.User.Id, async (sp) => await HandleVerifyRelinkAsync((SocketSlashCommand)Context.Interaction, sp)));
|
||||
//_botServices.VerificationQueue.Enqueue(new KeyValuePair<ulong, Action<IServiceProvider>>(Context.User.Id, async (sp) => await HandleVerifyRelinkAsync((SocketSlashCommand)Context.Interaction, sp)));
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue