cyan.model.announcement module

class cyan.model.announcement.Announcement(bot: cyan.bot.Bot, props: Dict[str, Any])[源代码]

基类:cyan.model.Model

公告。

property bot: cyan.bot.Bot

Model 所属机器人。

async get_channel() TextChannel[源代码]

异步获取当前公告所属子频道。

返回:

TextChannel 类型表示的公告所属子频道。

async get_guild() Guild[源代码]

异步获取当前公告所属频道。

返回:

Guild 类型表示的公告所属频道。

async get_message() ChannelMessage[源代码]

异步获取当前公告的消息。

返回:

ChannelMessage 类型表示的公告消息。

property identifier: str

Model ID。