|
|
@ -126,7 +126,7 @@ class Extension: |
|
|
|
not_synced = await self.get_authusers_without_sync() |
|
|
|
for uid in not_synced: |
|
|
|
try: |
|
|
|
member = self.core.get_guild(self.core.main_server_id).get_member(uid) |
|
|
|
member = self.core.get_guild(self.core.main_server_id).get_member(int(uid)) |
|
|
|
await self.final_stage(member, member.guild, "Автоматически, синхронизация с сайтом, во время иницилизации") |
|
|
|
except Exception as e: |
|
|
|
print(f"[register.prepair] Cannot add role, uid:{uid}, error:{e}") |
|
|
@ -184,7 +184,7 @@ class Extension: |
|
|
|
|
|
|
|
for reg in hmap.get("reg", []): |
|
|
|
try: |
|
|
|
member = self.core.get_guild(self.core.main_server_id).get_member(reg) |
|
|
|
member = self.core.get_guild(self.core.main_server_id).get_member(int(reg)) |
|
|
|
await self.final_stage(member, member.guild, "Автоматически, синхронизация с сайтом") |
|
|
|
except: |
|
|
|
print(f"[register] cannot add role to {reg}") |
|
|
@ -192,7 +192,7 @@ class Extension: |
|
|
|
|
|
|
|
for unreg in hmap.get("unreg", []): |
|
|
|
try: |
|
|
|
member = self.core.get_guild(self.core.main_server_id).get_member(unreg) |
|
|
|
member = self.core.get_guild(self.core.main_server_id).get_member(int(unreg)) |
|
|
|
await self.final_stage(member, member.guild, "Автоматически, синхронизация с сайтом") |
|
|
|
except: |
|
|
|
print(f"[register] cannot add role to {unreg}") |
|
|
|