add more logging to mare wizard module
This commit is contained in:
@@ -12,6 +12,8 @@ public partial class MareWizardModule
|
||||
{
|
||||
if (!(await ValidateInteraction().ConfigureAwait(false))) return;
|
||||
|
||||
_logger.LogInformation("{method}:{userId}", nameof(ComponentDelete), Context.Interaction.User.Id);
|
||||
|
||||
using var mareDb = GetDbContext();
|
||||
EmbedBuilder eb = new();
|
||||
eb.WithTitle("Delete Account");
|
||||
@@ -33,6 +35,8 @@ public partial class MareWizardModule
|
||||
{
|
||||
if (!(await ValidateInteraction().ConfigureAwait(false))) return;
|
||||
|
||||
_logger.LogInformation("{method}:{userId}:{uid}", nameof(SelectionDeleteAccount), Context.Interaction.User.Id, uid);
|
||||
|
||||
using var mareDb = GetDbContext();
|
||||
bool isPrimary = mareDb.Auth.Single(u => u.UserUID == uid).PrimaryUserUID == null;
|
||||
EmbedBuilder eb = new();
|
||||
@@ -53,6 +57,8 @@ public partial class MareWizardModule
|
||||
{
|
||||
if (!(await ValidateInteraction().ConfigureAwait(false))) return;
|
||||
|
||||
_logger.LogInformation("{method}:{userId}:{uid}", nameof(ComponentDeleteAccountConfirm), Context.Interaction.User.Id, uid);
|
||||
|
||||
await RespondWithModalAsync<ConfirmDeletionModal>("wizard-delete-confirm-modal:" + uid).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
@@ -61,6 +67,8 @@ public partial class MareWizardModule
|
||||
{
|
||||
if (!(await ValidateInteraction().ConfigureAwait(false))) return;
|
||||
|
||||
_logger.LogInformation("{method}:{userId}:{uid}", nameof(ModalDeleteAccountConfirm), Context.Interaction.User.Id, uid);
|
||||
|
||||
try
|
||||
{
|
||||
if (!string.Equals("DELETE", modal.Delete, StringComparison.Ordinal))
|
||||
|
||||
Reference in New Issue
Block a user