gsd 2 years ago
parent
commit
cf7b3a47f9
  1. 5
      other_ext/register.py

5
other_ext/register.py

@ -14,7 +14,7 @@ class Extension:
):
await interaction.response.defer(thinking=True)
try:
steam64 = await core.GetSteam64OfDiscord(interaction.user)
steam64 = await core.GetSteam64OfDiscord(interaction.user, True)
return await interaction.followup.send('У тебя уже привязан профиль, стоит его для начала отвязать перед новой привязкой', ephemeral=True)
except:
pass
@ -51,8 +51,9 @@ class Extension:
steam64 = await core.GetSteam64OfDiscord(interaction.user)
player = await core.GetPlayer(steam64, steam64, False)
await player.RemoveDiscordId(interaction.user.id)
await interaction.followup.send(f'Профиль отвязан, друг', ephemeral=True)
core.discord2steam_cache = {}
await self.remove_role(interaction.user, interaction.guild)
await interaction.followup.send(f'Профиль отвязан, друг', ephemeral=True)
return
@core.event

Loading…
Cancel
Save