Browse Source

fix reg 2

huy
gsd 2 years ago
parent
commit
4ae2718597
  1. 1
      other_ext/register.py

1
other_ext/register.py

@ -111,6 +111,7 @@ class Extension:
@discord.app_commands.describe()
@discord.app_commands.checks.has_role("Администратор Фактов13")
async def sync_list_not_have_role(interaction: discord.Interaction):
await interaction.response.defer(thinking=True)
current_members:List[discord.Member] = self.core.get_guild(int(self.core.main_server_id)).members
current_members = [str(i.id) for i in current_members if i.get_role(self.default_role) == None]

Loading…
Cancel
Save