Made role-querying use a string for id instead of an int

This commit is contained in:
henceiusegentoo 2023-08-09 10:20:31 +02:00
parent e589b87fb4
commit c741c03bae

View file

@ -35,7 +35,7 @@ async def update_roles(mongo):
for role in level_role_names:
if role in role_names:
users.update_one(
{'auth.discord': int(discord)},
{'auth.discord': discord},
{'$set': {'level': role}}
)
print(f'Updated {discord} to {role}')