回答編集履歴
1
変数名の変更
answer
CHANGED
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
@client.command()
|
|
8
8
|
@commands.dm_only()
|
|
9
9
|
async def hs(message):
|
|
10
|
-
def check(
|
|
10
|
+
def check(waited_message):
|
|
11
|
-
is_dm = type(
|
|
11
|
+
is_dm = type(waited_message.channel) == discord.DMChannel
|
|
12
|
-
is_same_user =
|
|
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つ目の値を入力(半角)')
|