Skip to content

Commit

Permalink
chore: remove deprecated undocumented things
Browse files Browse the repository at this point in the history
  • Loading branch information
EQUENOS committed Sep 23, 2023
1 parent 1f10a8d commit f5d5d57
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions disnake/ext/commands/interaction_bot_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,14 +254,6 @@ def command_sync_flags(self) -> CommandSyncFlags:
"""
return CommandSyncFlags._from_value(self._command_sync_flags.value)

def application_commands_iterator(self) -> Iterable[InvokableApplicationCommand]:
warn_deprecated(
"application_commands_iterator is deprecated and will be removed in a future version. "
"Use all_app_commands.values() instead.",
stacklevel=3,
)
return self.all_app_commands.values()

@property
def application_commands(self) -> Set[InvokableApplicationCommand]:
"""Set[:class:`InvokableApplicationCommand`]: A set of all application commands the bot has."""
Expand Down Expand Up @@ -983,15 +975,8 @@ def decorator(
# command synchronisation

def _ordered_unsynced_commands(
self, test_guilds: Optional[Sequence[int]] = MISSING
self
) -> Tuple[List[ApplicationCommand], Dict[int, List[ApplicationCommand]]]:
if test_guilds is not MISSING:
warn_deprecated(
"Argument test_guilds of _ordered_unsynced_commands is deprecated "
"and will be removed in a future version.",
stacklevel=3,
)

global_cmds = []
guilds = {}

Expand Down

0 comments on commit f5d5d57

Please sign in to comment.