Skip to content

Commit 18f3d31

Browse files
committed
Added migirate docs
1 parent 96cc227 commit 18f3d31

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

docs/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ discussion on GitHub!
2727

2828
quickstart.rst
2929
gettingstarted.rst
30+
migrate_to_109.rst
3031
discord_slash.rst
3132
events.rst
3233
discord_slash.utils.rst

docs/migrate_to_109.rst

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Migrate To 1.0.9
2+
================
3+
4+
1.0.9 Update includes many feature add/rewrite for easier and better usage.
5+
However, due to that, it includes many critical breaking changes.
6+
7+
This page will show how to deal with those changes.
8+
9+
SlashContext.send()
10+
********************
11+
12+
Before:
13+
14+
.. code-block:: python
15+
16+
await ctx.send(4, content="Hello, World! This is initial message.")
17+
await ctx.delete()
18+
await ctx.send(content="This is followup message.")
19+
20+
After:
21+
22+
.. code-block:: python
23+
24+
await ctx.respond(eat=False)
25+
msg = await ctx.send("Hello, World! This is initial message.")
26+
await msg.delete()
27+
await ctx.send("This is followup message.")

0 commit comments

Comments
 (0)