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.
1 parent 0513a9e commit 794f0dbCopy full SHA for 794f0db
docs/migrate_to_109.rst
@@ -88,14 +88,11 @@ After:
88
89
class Slash(commands.Cog):
90
def __init__(self, bot):
91
- if not hasattr(bot, "slash"):
92
- # Creates new SlashCommand instance to bot if bot doesn't have.
93
- bot.slash = SlashCommand(bot, override_type=True)
94
self.bot = bot
95
96
...
97
98
-Note that removing `if not hasattr(...):` block then moving to main file like this is also recommended.
+As you can seem `if not hasattr(...):` block is removed, moving to main file like this is necessary.
99
100
.. code-block:: python
101
0 commit comments