File tree Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Expand file tree Collapse file tree 4 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ slash = SlashCommand(bot)
15
15
@slash.slash (name = " test" )
16
16
async def _test (ctx : SlashContext):
17
17
embed = discord.Embed(title = " embed test" )
18
- await ctx.send(text = " test" , embeds = [embed])
18
+ await ctx.send(content = " test" , embeds = [embed])
19
19
20
20
21
21
bot.run(" discord_token" )
Original file line number Diff line number Diff line change @@ -62,12 +62,12 @@ def slash(self,
62
62
63
63
@slash.slash(name="ping")
64
64
async def _slash(ctx): # Normal usage.
65
- await ctx.send(text =f"Pong! (`{round(bot.latency*1000)}`ms)")
65
+ await ctx.send(content =f"Pong! (`{round(bot.latency*1000)}`ms)")
66
66
67
67
68
68
@slash.slash(name="pick")
69
69
async def _pick(ctx, choice1, choice2): # Command with 1 or more args.
70
- await ctx.send(text =str(random.choice([choice1, choice2])))
70
+ await ctx.send(content =str(random.choice([choice1, choice2])))
71
71
72
72
Example of formatting ``auto_convert``:
73
73
Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ async def send(self,
54
54
:param tts: Whether to speak message using tts. Default ``False``.
55
55
:type tts: bool
56
56
:param allowed_mentions: AllowedMentions of the message.
57
+ :type allowed_mentions: List[discord.AllowedMentions]
57
58
:return: ``None``
58
59
"""
59
60
if embeds and len (embeds ) > 10 :
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ Example:
25
25
@slash.slash (name = " test" )
26
26
async def _test (ctx : SlashContext):
27
27
embed = discord.Embed(title = " embed test" )
28
- await ctx.send(text = " test" , embeds = [embed])
28
+ await ctx.send(content = " test" , embeds = [embed])
29
29
30
30
31
31
bot.run(" discord_token" )
You can’t perform that action at this time.
0 commit comments