We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fce63bc commit 174fb26Copy full SHA for 174fb26
interactions/models/discord/application.py
@@ -99,9 +99,8 @@ async def fetch_all_emoji(self) -> List[PartialEmoji]:
99
100
async def fetch_emoji(self, emoji_id: Snowflake_Type) -> PartialEmoji:
101
"""Fetch an emoji for this application"""
102
- return await self._client.cache.place_emoji_data(
103
- None, self._client.http.get_application_emoji(self.id, emoji_id)
104
- )
+ response = await self._client.http.get_application_emoji(self.id, emoji_id)
+ return await self._client.cache.place_emoji_data(None, response)
105
106
async def create_emoji(self, name: str, imagefile: UPLOADABLE_TYPE) -> PartialEmoji:
107
"""Create an emoji for this application"""
0 commit comments