回答編集履歴

2

commands.Botは本質的にはクライアントではないため、変数名を変更しました。

2018/10/14 08:25

投稿

Lazialize
Lazialize

スコア58

test CHANGED
@@ -12,11 +12,11 @@
12
12
 
13
13
 
14
14
 
15
- client = commands.Bot(command_prefix='your prefix', description='')
15
+ bot = commands.Bot(command_prefix='your prefix', description='')
16
16
 
17
17
 
18
18
 
19
- @client.command()
19
+ @bot.command()
20
20
 
21
21
  async def merge(*arguments):
22
22
 
@@ -28,7 +28,7 @@
28
28
 
29
29
 
30
30
 
31
- client.run('your token')
31
+ bot.run('your token')
32
32
 
33
33
  ```
34
34
 

1

コードに誤りがあったため修正。

2018/10/14 08:25

投稿

Lazialize
Lazialize

スコア58

test CHANGED
@@ -16,7 +16,7 @@
16
16
 
17
17
 
18
18
 
19
- @cliend.command()
19
+ @client.command()
20
20
 
21
21
  async def merge(*arguments):
22
22