Skip to content

Commit 794f0db

Browse files
committed
Update migrate_to_109.rst
1 parent 0513a9e commit 794f0db

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

docs/migrate_to_109.rst

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,11 @@ After:
8888
8989
class Slash(commands.Cog):
9090
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)
9491
self.bot = bot
9592
9693
...
9794
98-
Note that removing `if not hasattr(...):` block then moving to main file like this is also recommended.
95+
As you can seem `if not hasattr(...):` block is removed, moving to main file like this is necessary.
9996

10097
.. code-block:: python
10198

0 commit comments

Comments
 (0)