Skip to content

Commit

Permalink
style(pre-commit): auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Jul 23, 2024
1 parent e9fae0f commit f2e81c7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions discord/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2154,7 +2154,9 @@ async def fetch_emojis(self) -> list[AppEmoji]:
List[:class:`AppEmoji`]
The retrieved emojis.
"""
data = await self._connection.http.get_all_application_emojis(self.application_id)
data = await self._connection.http.get_all_application_emojis(
self.application_id
)
return [
self._connection.maybe_store_app_emoji(self.application_id, d)
for d in data["items"]
Expand Down Expand Up @@ -2244,6 +2246,8 @@ async def delete_emoji(
An error occurred deleting the emoji.
"""

await self._connection.http.delete_application_emoji(self.application_id, emoji.id)
await self._connection.http.delete_application_emoji(
self.application_id, emoji.id
)
if self._connection.cache_app_emojis and self._connection.get_emoji(emoji.id):
self._connection.remove_emoji(emoji)

0 comments on commit f2e81c7

Please sign in to comment.