回答編集履歴
1
.membersを追加
test
CHANGED
@@ -40,7 +40,7 @@
|
|
40
40
|
|
41
41
|
```python
|
42
42
|
|
43
|
-
elif message.author.voice is not None and message.guild.me in message.author.voice.channel:
|
43
|
+
elif message.author.voice is not None and message.guild.me in message.author.voice.channel.members:
|
44
44
|
|
45
45
|
```
|
46
46
|
|
@@ -56,7 +56,7 @@
|
|
56
56
|
|
57
57
|
```python
|
58
58
|
|
59
|
-
elif message.author.voice is not None and message.guild.me in message.author.voice.channel: == True:
|
59
|
+
elif message.author.voice is not None and message.guild.me in message.author.voice.channel.members: == True:
|
60
60
|
|
61
61
|
await message.channel.send("切断しました。")
|
62
62
|
|
@@ -68,7 +68,7 @@
|
|
68
68
|
|
69
69
|
```python
|
70
70
|
|
71
|
-
elif message.author.voice is not None and message.guild.me not in message.author.voice.channel:
|
71
|
+
elif message.author.voice is not None and message.guild.me not in message.author.voice.channel.members:
|
72
72
|
|
73
73
|
await message.channel.send("移動しました。")
|
74
74
|
|