回答編集履歴

3

コード修正

2020/12/11 05:50

投稿

teamikl
teamikl

スコア8664

test CHANGED
@@ -16,7 +16,7 @@
16
16
 
17
17
  - logs_from -> [channel.history](https://discordpy.readthedocs.io/ja/latest/api.html#discord.abc.Messageable.history)
18
18
 
19
- - message_delete -> [message.delete](https://discordpy.readthedocs.io/ja/latest/api.html#discord.Message.delete)
19
+ - delete_message -> [message.delete](https://discordpy.readthedocs.io/ja/latest/api.html#discord.Message.delete)
20
20
 
21
21
  - [delete_messages](https://discordpy.readthedocs.io/ja/latest/api.html#discord.TextChannel.delete_messages) 複数のメッセージを削除
22
22
 

2

文章レイアウトの修正

2020/12/11 05:50

投稿

teamikl
teamikl

スコア8664

test CHANGED
@@ -4,27 +4,31 @@
4
4
 
5
5
 
6
6
 
7
- Context に logs_from 属性がありません。
7
+ Context オブジェクトに logs_from 属性がありません。
8
8
 
9
9
 
10
10
 
11
11
  参考にしてる情報が古いのだと思います。
12
12
 
13
- [v1.0への移行](https://discordpy.readthedocs.io/ja/latest/migrating.html)
13
+ [v1.0への移行](https://discordpy.readthedocs.io/ja/latest/migrating.html) に、代替方法の一覧があります。
14
-
15
- で、代替方法のリストがあります。
16
14
 
17
15
 
16
+
17
+ - logs_from -> [channel.history](https://discordpy.readthedocs.io/ja/latest/api.html#discord.abc.Messageable.history)
18
+
19
+ - message_delete -> [message.delete](https://discordpy.readthedocs.io/ja/latest/api.html#discord.Message.delete)
20
+
21
+ - [delete_messages](https://discordpy.readthedocs.io/ja/latest/api.html#discord.TextChannel.delete_messages) 複数のメッセージを削除
22
+
23
+
24
+
25
+ 他、変更点
18
26
 
19
27
  > 最も大きな変更点は pass_context=True が廃止され、常に Context が渡されるようになったことです。
20
28
 
21
29
 
22
30
 
23
- - [channel.history](https://discordpy.readthedocs.io/ja/latest/api.html#discord.abc.Messageable.history)
24
-
25
- - [message.delete](https://discordpy.readthedocs.io/ja/latest/api.html#discord.Message.delete)
31
+ ----
26
-
27
- - [delete_messages](https://discordpy.readthedocs.io/ja/latest/api.html#discord.TextChannel.delete_messages) 複数のメッセージを削除
28
32
 
29
33
 
30
34
 

1

追記:エラーについて

2020/12/11 02:00

投稿

teamikl
teamikl

スコア8664

test CHANGED
@@ -1,6 +1,18 @@
1
+ エラー内容について
2
+
3
+ > discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: 'Context' object has no attribute 'logs_from'
4
+
5
+
6
+
7
+ Context に logs_from 属性がありません。
8
+
9
+
10
+
1
11
  参考にしてる情報が古いのだと思います。
2
12
 
3
13
  [v1.0への移行](https://discordpy.readthedocs.io/ja/latest/migrating.html)
14
+
15
+ で、代替方法のリストがあります。
4
16
 
5
17
 
6
18