fix recovery

This commit is contained in:
rootdarkarchon
2023-02-25 14:37:49 +01:00
parent aa03d400d4
commit 7a211aa236

View File

@@ -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);