質問編集履歴
2
title
CHANGED
File without changes
|
body
CHANGED
@@ -6,5 +6,5 @@
|
|
6
6
|
await ctx.channel.purge(limit=amount)
|
7
7
|
embed=discord.Embed(title="コマンドヘルプ", description="実装コマンド")
|
8
8
|
embed.add_field(name="クリア", value="clear", inline=False)
|
9
|
-
await ctx.send(embed=embed
|
9
|
+
await ctx.send(embed=embed)
|
10
10
|
```
|
1
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,8 +1,10 @@
|
|
1
1
|
Discord.pyのembedが機能しません、どなたか解決方法を教えてください。
|
2
2
|
|
3
|
+
```Python
|
3
|
-
|
4
|
+
@client.command()
|
4
5
|
async def clear(ctx,amount:int):
|
5
6
|
await ctx.channel.purge(limit=amount)
|
6
7
|
embed=discord.Embed(title="コマンドヘルプ", description="実装コマンド")
|
7
8
|
embed.add_field(name="クリア", value="clear", inline=False)
|
8
|
-
await ctx.send(embed=embed
|
9
|
+
await ctx.send(embed=embed
|
10
|
+
```
|