Set type of user_id on is_server_admin to str (#18786)

This commit is contained in:
Andrew Morgan
2025-08-07 15:16:32 +01:00
committed by GitHub
parent e587b8c2ee
commit 3a01e9d3d2
7 changed files with 8 additions and 10 deletions
+1 -1
View File
@@ -761,7 +761,7 @@ class ModuleApi:
Returns:
True if the user is a server admin, False otherwise.
"""
return await self._store.is_server_admin(UserID.from_string(user_id))
return await self._store.is_server_admin(user_id)
async def set_user_admin(self, user_id: str, admin: bool) -> None:
"""Sets if a user is a server admin.