это мой код
< pre class="lang-py Prettyprint-override">
Код: Выделить всё
import requests
API_URL = "https://discord.com/api/v9"
res = requests.post(f"{API_URL}/guilds/{guild_id}/channels", data={"name": "my channel name", "permission_overwrites": [], "type": 0}, headers={"authorization": f"Bot {the_bot_token}", "Content-Type": "application/json"})
print(res.text)
Код: Выделить всё
{"message": "400: Bad Request", "code": 0}
Подробнее здесь: https://stackoverflow.com/questions/694 ... iscord-api