Skip to content

Commit dc57b70

Browse files
committed
Update migrate_to_109.rst
1 parent 18f3d31 commit dc57b70

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

docs/migrate_to_109.rst

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,34 @@ However, due to that, it includes many critical breaking changes.
66

77
This page will show how to deal with those changes.
88

9-
SlashContext.send()
10-
********************
9+
SlashContext
10+
************
11+
12+
.send()
13+
-------
1114

1215
Before:
1316

1417
.. code-block:: python
1518
19+
# Case 1
1620
await ctx.send(4, content="Hello, World! This is initial message.")
1721
await ctx.delete()
1822
await ctx.send(content="This is followup message.")
1923
24+
# Case 2
25+
await ctx.send(content="This is secret message.", complete_hidden=True)
26+
2027
After:
2128

2229
.. code-block:: python
2330
24-
await ctx.respond(eat=False)
31+
# Case 1
32+
await ctx.respond()
2533
msg = await ctx.send("Hello, World! This is initial message.")
2634
await msg.delete()
2735
await ctx.send("This is followup message.")
36+
37+
# Case 2
38+
await ctx.respond(eat=True)
39+
await ctx.send("This is secret message.", hidden=True)

0 commit comments

Comments
 (0)