Skip to content

Commit abed822

Browse files
committed
!fix(application_commands): Fixed SubCommand autocomplete handling
1 parent 61cf1f8 commit abed822

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

discord/application_commands.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -840,6 +840,7 @@ def __init__(self,
840840
self.cog = kwargs.get('cog', None)
841841
self.connector = kwargs.get('connector', {})
842842
self.guild_id = kwargs.get('guild_id', parent.guild_id)
843+
self.autocomplete_func = None
843844
super().__init__(OptionType.sub_command, name=name, description=description,
844845
name_localizations=name_localizations, description_localizations=description_localizations,
845846
__options=options)

discord/channel.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1922,6 +1922,9 @@ def _add_thread(self, thread: ThreadChannel) -> None:
19221922
def _remove_thread(self, thread: ThreadChannel) -> None:
19231923
self._posts.pop(thread.id, None)
19241924

1925+
def _update(self, guild, data) -> None:
1926+
pass
1927+
19251928

19261929
class PartialMessageable(abc.Messageable, Hashable):
19271930
"""Represents a partial messageable to aid with working messageable channels when

0 commit comments

Comments
 (0)