mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-12 20:07:22 +01:00
fix recovery
This commit is contained in:
parent
aa03d400d4
commit
7a211aa236
1 changed files with 3 additions and 1 deletions
|
|
@ -225,7 +225,7 @@ public class MareModule : InteractionModuleBase
|
||||||
_logger.LogInformation("SlashCommand:{userId}:{Method}",
|
_logger.LogInformation("SlashCommand:{userId}:{Method}",
|
||||||
Context.Interaction.User.Id, nameof(Recover));
|
Context.Interaction.User.Id, nameof(Recover));
|
||||||
|
|
||||||
await RespondWithModalAsync<LodestoneModal>($"recover_modal:{secondaryUid}").ConfigureAwait(false);
|
await RespondWithModalAsync<LodestoneModal>($"recover_modal:{secondaryUid ?? "-1"}").ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
[SlashCommand("userinfo", "Shows you your user information")]
|
[SlashCommand("userinfo", "Shows you your user information")]
|
||||||
|
|
@ -354,6 +354,8 @@ public class MareModule : InteractionModuleBase
|
||||||
_logger.LogInformation("Modal:{userId}:{Method}",
|
_logger.LogInformation("Modal:{userId}:{Method}",
|
||||||
Context.Interaction.User.Id, nameof(RecoverModal));
|
Context.Interaction.User.Id, nameof(RecoverModal));
|
||||||
|
|
||||||
|
if (secondaryUid == "-1") secondaryUid = null;
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var embed = await HandleRecoverModalAsync(modal, Context.User.Id, secondaryUid).ConfigureAwait(false);
|
var embed = await HandleRecoverModalAsync(modal, Context.User.Id, secondaryUid).ConfigureAwait(false);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue