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.
InvalidArgument
AppEmoji
get_or_fetch
1 parent 58b92f3 commit 6240173Copy full SHA for 6240173
1 file changed
discord/utils.py
@@ -721,6 +721,8 @@ async def get_or_fetch(
721
raise InvalidArgument("Client cannot get_or_fetch Role. Use Guild instead.")
722
elif isinstance(obj, Guild) and object_type is Guild:
723
raise InvalidArgument("Guild cannot get_or_fetch Guild. Use Client instead.")
724
+ elif isinstance(obj, Guild) and object_type is AppEmoji:
725
+ raise InvalidArgument("Guild cannot get_or_fetch AppEmoji. Use Client instead.")
726
727
try:
728
getter, fetcher = _get_getter_fetcher_map()[object_type]
0 commit comments