Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

Commit

Permalink
Fixed typing bug with lobby.py.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lenny P Critchley committed Aug 30, 2020
1 parent 163ff80 commit df91906
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions discordsdk/lobby.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit df91906

Please sign in to comment.