diff --git a/discordsdk/lobby.py b/discordsdk/lobby.py index fd17528..8cdcfe2 100644 --- a/discordsdk/lobby.py +++ b/discordsdk/lobby.py @@ -424,7 +424,7 @@ def lobby_metadata_count(self, lobby_id: int) -> int: """ Returns the number of metadata key/value pairs on a given lobby. """ - count = sdk.c_int32() + count = ctypes.c_int32() result = Result(self._internal.lobby_metadata_count(self._internal, lobby_id, count)) if result != Result.ok: @@ -473,7 +473,7 @@ def member_count(self, lobby_id: int) -> int: """ Get the number of members in a lobby. """ - count = sdk.c_int32() + count = ctypes.c_int32() result = Result(self._internal.member_count(self._internal, lobby_id, count)) if result != Result.ok: @@ -509,7 +509,7 @@ def member_metadata_count(self, lobby_id: int, user_id: int) -> int: """ Gets the number of metadata key/value pairs for the given lobby member. """ - count = sdk.c_int32() + count = ctypes.c_int32() result = Result(self._internal.member_metadata_count( self._internal, @@ -650,7 +650,7 @@ def lobby_count(self) -> int: """ Get the number of lobbies that match the search. """ - count = sdk.c_int32() + count = ctypes.c_int32() self._internal.lobby_count(self._internal, count) return count.value