diff options
| author | Rapptz <[email protected]> | 2019-02-23 11:02:19 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2019-02-23 11:02:19 -0500 |
| commit | 3a8214a1155ac46ca13be29600bd9c48198bb4da (patch) | |
| tree | 9857d08c61b3b35bd9c06cbc67c4ce38c522ad28 | |
| parent | [commands] Fix bug in behaviour in the cog inspection methods. (diff) | |
| download | discord.py-3a8214a1155ac46ca13be29600bd9c48198bb4da.tar.xz discord.py-3a8214a1155ac46ca13be29600bd9c48198bb4da.zip | |
[commands] Remove Bot.get_cog_commands
| -rw-r--r-- | discord/ext/commands/bot.py | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/discord/ext/commands/bot.py b/discord/ext/commands/bot.py index e0de7d4f..694b466d 100644 --- a/discord/ext/commands/bot.py +++ b/discord/ext/commands/bot.py @@ -559,31 +559,6 @@ class BotBase(GroupMixin): """ return self.cogs.get(name) - def get_cog_commands(self, name): - """Gets a unique set of the cog's registered commands - without aliases. - - If the cog is not found, an empty set is returned. - - Parameters - ------------ - name: str - The name of the cog whose commands you are requesting. - - Returns - --------- - Set[:class:`.Command`] - A unique set of commands without aliases that belong - to the cog. - """ - - try: - cog = self.cogs[name] - except KeyError: - return set() - - return {c for c in self.all_commands.values() if c.cog is cog} - def remove_cog(self, name): """Removes a cog from the bot. |