Package-level declarations
Types
Link copied to clipboard
interface Announcement
表示一个 (群) 公告.
Link copied to clipboard
群公告图片. 可通过 Announcements.uploadImage 上传获得. 不确定服务器会保存多久.
Link copied to clipboard
群公告的附加参数.
Link copied to clipboard
class AnnouncementParametersBuilder @JvmOverloads constructor(prototype: AnnouncementParameters = AnnouncementParameters.DEFAULT)
AnnouncementParameters 的构建器. 可以构建一个 AnnouncementParameters 实例.
Link copied to clipboard
表示一个群的公告列表 (管理器).
Link copied to clipboard
表示在本地构建的 Announcement.
Link copied to clipboard
表示从 Announcements.get 等途径在线获取的, 已经存在于服务器的公告.
Functions
Link copied to clipboard
inline fun buildAnnouncementParameters(builderAction: AnnouncementParametersBuilder.() -> Unit): AnnouncementParameters
Link copied to clipboard
依据 from 创建 OfflineAnnouncement. 若 from 类型为 OfflineAnnouncement 则直接返回 from.
inline fun OfflineAnnouncement(content: String, parameters: AnnouncementParametersBuilder.() -> Unit): OfflineAnnouncement
inline fun OfflineAnnouncement(content: String, parameters: AnnouncementParameters = AnnouncementParameters.DEFAULT): OfflineAnnouncement
Link copied to clipboard
创建 OfflineAnnouncement. 若 this 类型为 OfflineAnnouncement 则直接返回 this.
Properties
Link copied to clipboard
公告所在群所属的 Bot, 即 group.bot
.