我正在尝试在我的频道中发送消息。正如我所阅读的,我需要在发布请求中将消息作为内容参数传递。这是该代码的简短python
import requests
URL = "https://discordapp.com/api/webhooks/super/secret
r = requests.get(URL,data={"content":"123"},headers={"Content-Type":"application/json"})
print(r.text)
但这给了我一个答复:
<a href=//www.google.com/><span id=logo aria-label=Google></span></a>
<p><b>400.</b> <ins>That’s an error.</ins>
<p>Your client has issued a malformed or illegal request. <ins>That’s all we know.</ins>