mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-15 18:14:14 +01:00
check for options name during register properly
This commit is contained in:
parent
2d967ab9b6
commit
915152bae9
1 changed files with 1 additions and 1 deletions
|
|
@ -52,7 +52,7 @@ namespace MareSynchronosServer.Discord
|
||||||
{
|
{
|
||||||
if (arg.Data.Name == "register")
|
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);
|
await DeletePreviousUserAccount(arg.User.Id);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue