Skip to content

Conversation

@ForteScarlet
Copy link
Member

val guild: KookGuild = ...
val blacklistOperator = guild.blacklist

val pagedList = blacklistOperator.list(page = 1)
val all = blacklistOperator.all()
val flow = blacklistOperator.flow()

blacklistOperator.add(123.ID)
blacklistOperator.delete(123.ID)

val item = list.first()
// properties
item.userId
item.guildId
item.createdTime
item.remark
item.userInfo

// operator
item.delete() // from DeleteSupport

close #294

@ForteScarlet ForteScarlet self-assigned this Nov 2, 2025
@ForteScarlet ForteScarlet added the 特性 新的功能或特性 label Nov 2, 2025
@ForliyScarlet
Copy link
Member

Qodana Community for JVM

It seems all right 👌

No new problems were found according to the checks applied

💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report

Contact Qodana team

Contact us at qodana-support@jetbrains.com

@ForteScarlet ForteScarlet merged commit 3fd6a72 into dev/main Nov 2, 2025
4 checks passed
@ForteScarlet ForteScarlet deleted the dev/blacklist-operator branch November 2, 2025 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

特性 新的功能或特性

Projects

None yet

Development

Successfully merging this pull request may close these issues.

支持黑名单相关上层API

3 participants