check for options name during register properly

This commit is contained in:
Stanley Dimant
2022-08-02 22:09:53 +02:00
parent 2d967ab9b6
commit 915152bae9

View File

@@ -52,7 +52,7 @@ namespace MareSynchronosServer.Discord
{
if (arg.Data.Name == "register")
{
if (arg.Data.Options.FirstOrDefault(f => f.Name == "forced") != null)
if (arg.Data.Options.FirstOrDefault(f => f.Name == "overwrite_old_account") != null)
{
await DeletePreviousUserAccount(arg.User.Id);
}