Skip to content

Commit fc3276a

Browse files
committed
make properties use guild_id attribute instead of calling other 2 functions
1 parent 4b9cef8 commit fc3276a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: disnake/emoji.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def application_id(self) -> Optional[int]:
182182
183183
.. versionadded:: 2.11
184184
"""
185-
if self.guild is None:
185+
if self.guild_id is None:
186186
return None
187187
return self._state.application_id
188188

@@ -192,7 +192,7 @@ def is_app_emoji(self) -> bool:
192192
193193
.. versionadded:: 2.11
194194
"""
195-
if self.guild is None:
195+
if self.guild_id is None:
196196
return True
197197
return False
198198

0 commit comments

Comments
 (0)