如何使用 python 脚本通过机器人在中途将不和谐提示发送到不和谐服务器(频道)?

问题描述 投票:0回答:1

我想使用外部命令生成图像,我写道:

    url = "https://discord.com/api/v9/channels/numberss/messages"
    auth = {
        'authorization': 'checked from ctrl+shift+i'
    }
    msg = {
        'content':'/imagine dog with sun'
    }
    requests.post(url, headers=auth, data=msg)

discord 显示“/想象狗与太阳”,但作为纯文本而不是提示

我需要获取生成图像的 url 地址作为对我的 python 脚本的反馈

python discord api-key
1个回答
0
投票

您只需要使用 API 层到 Midjourney,例如 userapi.ai 或其他服务。

© www.soinside.com 2019 - 2024. All rights reserved.