删除子频道公告

删除子频道公告。

使用示例

import botpy
from botpy.message import Message

class MyClient(botpy.Client):
    async def on_at_message_create(self, message: Message):
        message_id = "088de19cbeb883e7e97110a2e39c0138d401"
        await self.api.delete_announce(message.guild_id, message_id)

intents = botpy.Intents(public_guild_messages=True)
client = MyClient(intents=intents)
client.run(appid={appid}, token={token})

参数说明

字段名必填类型描述
guild_idstring频道 ID
message_idstring消息 ID

返回说明

成功返回空对象。

返回示例

data

True