質問するログイン新規登録

回答編集履歴

1

変数名の変更

2021/09/29 14:28

投稿

Tai4
Tai4

スコア49

answer CHANGED
@@ -7,9 +7,9 @@
7
7
  @client.command()
8
8
  @commands.dm_only()
9
9
  async def hs(message):
10
- def check(wait_message):
10
+ def check(waited_message):
11
- is_dm = type(wait_message.channel) == discord.DMChannel
11
+ is_dm = type(waited_message.channel) == discord.DMChannel
12
- is_same_user = wait_message.author == message.author
12
+ is_same_user = waited_message.author == message.author
13
13
  return is_dm and is_same_user
14
14
 
15
15
  await message.author.send('1つ目の値を入力(半角)')