質問編集履歴
3
解決
test
CHANGED
File without changes
|
test
CHANGED
@@ -119,3 +119,7 @@
|
|
119
119
|
```
|
120
120
|
|
121
121
|
となってしまいました。
|
122
|
+
|
123
|
+
### 解決方法
|
124
|
+
|
125
|
+
ベストアンサーをご覧ください。
|
2
test
CHANGED
File without changes
|
test
CHANGED
@@ -8,9 +8,9 @@
|
|
8
8
|
|
9
9
|
### 発生している問題
|
10
10
|
|
11
|
-
ボタンを指定したdiscordのチャンネルに表示したい
|
11
|
+
ボタンを指定したdiscordのチャンネルに表示したいです。
|
12
12
|
|
13
|
-
以下のコードはコマンドを打ったチャンネルに表示
|
13
|
+
以下のコードはコマンドを打ったチャンネルに表示してしまいます。
|
14
14
|
|
15
15
|
```python
|
16
16
|
|
1
追加の情報
test
CHANGED
File without changes
|
test
CHANGED
@@ -14,6 +14,8 @@
|
|
14
14
|
|
15
15
|
```python
|
16
16
|
|
17
|
+
buttons = ButtonsClient(bot)
|
18
|
+
|
17
19
|
@bot.command()
|
18
20
|
|
19
21
|
async def ready(ctx):
|
@@ -24,7 +26,7 @@
|
|
24
26
|
|
25
27
|
channel=ctx.channel.id,
|
26
28
|
|
27
|
-
omponents = [
|
29
|
+
components = [
|
28
30
|
|
29
31
|
ActionRow([
|
30
32
|
|
@@ -64,9 +66,55 @@
|
|
64
66
|
|
65
67
|
```エラー
|
66
68
|
|
69
|
+
Ignoring exception in command ready:
|
70
|
+
|
71
|
+
Traceback (most recent call last):
|
72
|
+
|
73
|
+
File "C:\Users\waon-pc\AppData\Local\Programs\Python\Python37-32\lib\site-packages\discord\ext\commands\core.py", line 85, in
|
74
|
+
|
75
|
+
wrapped
|
76
|
+
|
77
|
+
ret = await coro(*args, **kwargs)
|
78
|
+
|
79
|
+
File "f:\data\data\test\pythonfill\buttonstest.py", line 88, in ready
|
80
|
+
|
81
|
+
custom_id="join1"
|
82
|
+
|
83
|
+
File "C:\Users\waon-pc\AppData\Local\Programs\Python\Python37-32\lib\site-packages\discord_buttons_plugin\__main__.py", line 61, in send
|
84
|
+
|
85
|
+
"components": retcomp
|
86
|
+
|
87
|
+
File "C:\Users\waon-pc\AppData\Local\Programs\Python\Python37-32\lib\site-packages\discord\http.py", line 254, in request
|
88
|
+
|
89
|
+
raise HTTPException(r, data)
|
90
|
+
|
91
|
+
discord.errors.HTTPException: 400 Bad Request (error code: 50035): Invalid Form Body
|
92
|
+
|
93
|
+
In channel_id: Value "join1" is not snowflake.
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
The above exception was the direct cause of the following exception:
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
Traceback (most recent call last):
|
102
|
+
|
103
|
+
File "C:\Users\waon-pc\AppData\Local\Programs\Python\Python37-32\lib\site-packages\discord\ext\commands\bot.py", line 939, in
|
104
|
+
|
105
|
+
invoke
|
106
|
+
|
107
|
+
await ctx.command.invoke(ctx)
|
108
|
+
|
109
|
+
File "C:\Users\waon-pc\AppData\Local\Programs\Python\Python37-32\lib\site-packages\discord\ext\commands\core.py", line 863, in await injected(*ctx.args, **ctx.kwargs)
|
110
|
+
|
111
|
+
File "C:\Users\waon-pc\AppData\Local\Programs\Python\Python37-32\lib\site-packages\discord\ext\commands\core.py", line 94, in
|
112
|
+
|
113
|
+
raise CommandInvokeError(exc) from exc
|
114
|
+
|
67
115
|
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: HTTPException: 400 Bad Request (error code: 50035): Invalid Form Body
|
68
116
|
|
69
|
-
In channel_id: Value "
|
117
|
+
In channel_id: Value "join1" is not snowflake.
|
70
118
|
|
71
119
|
```
|
72
120
|
|