使用 python 创建 Discord Webhook 我最近正在使用 python 开发一个 Discord 机器人。我的不和谐机器人需要通过“DISCORD WEBHOOK”发送消息。问题是我找不到使用 python 自动创建不和谐 webhook 的方法!有什么办法可以做到吗!
import discord
client = discord.Client()
@client.event
async def on_message(message):
if message.content == 'createhook':
#code to create a webhook in that current channel
client.run("token")
Run Code Online (Sandbox Code Playgroud)