Skip to content

Commit 2a6dc8d

Browse files
authored
added a missing(dk wy) any
1 parent 5e7e435 commit 2a6dc8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discord/interactions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ async def defer(self, response_type: any([InteractionCallbackType.deferred_msg_w
107107

108108
if isinstance(response_type, int):
109109
response_type = InteractionCallbackType.from_value(response_type)
110-
if not isinstance(response_type, (InteractionCallbackType.deferred_msg_with_source, InteractionCallbackType.deferred_update_msg)):
110+
if not isinstance(response_type, any(InteractionCallbackType.deferred_msg_with_source, InteractionCallbackType.deferred_update_msg)):
111111
raise ValueError('response_type has to bee discord.InteractionCallbackType.deferred_msg_with_source or discord.InteractionCallbackType.deferred_update_msg, not %s.__class__.__name__' % response_type)
112112
if self.deferred:
113113
return log.warning("\033[91You have already responded to this Interaction!\033[0m")

0 commit comments

Comments
 (0)