Skip to content

Commit

Permalink
chore: Lint pass
Browse files Browse the repository at this point in the history
  • Loading branch information
dolfies committed Dec 4, 2024
1 parent 9f71ced commit 226f200
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
12 changes: 1 addition & 11 deletions discord/guild.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ class Guild(Hashable):
.. versionchanged:: 2.1
Removed ``application_command_counts`` as it is no longer provided by Discord.
Removed ``application_command_counts`` and ``application_command_count`` as they are no longer provided by Discord.
Attributes
----------
Expand Down Expand Up @@ -1309,16 +1309,6 @@ def online_count(self) -> Optional[int]:
"""
return self._presence_count

@property
def application_command_count(self) -> Optional[int]:
"""Optional[:class:`int`]: Returns the application command count, if available.
.. versionadded:: 2.0
"""
counts = self.application_command_counts
if counts:
sum(counts)

@property
def chunked(self) -> bool:
""":class:`bool`: Returns a boolean indicating if the guild is "chunked".
Expand Down
1 change: 1 addition & 0 deletions discord/types/voice.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
'xsalsa20_poly1305_lite',
]


class BaseVoiceState(TypedDict):
user_id: Snowflake
session_id: str
Expand Down
2 changes: 1 addition & 1 deletion discord/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ def _handle_metadata(obj):
def _to_json(obj: Any) -> str:
return orjson.dumps(obj, default=_handle_metadata).decode('utf-8')

_from_json = orjson.loads # type: ignore
_from_json = orjson.loads

else:

Expand Down

0 comments on commit 226f200

Please sign in to comment.