BotOwners

@InterfacedService(acceptMultiple = false)
interface BotOwners(source)

Holds owners of this bot.

Bot owners are allowed to bypass cooldowns, user permission checks, and have hidden commands shown.

Properties

Link copied to clipboard
abstract val ownerIds: Collection<Long>

The owners of this bot, uses BConfigBuilder.predefinedOwnerIds if configured, else retrieve the owners from Discord, where only owners, admin and developers are taken.

Functions

Link copied to clipboard
open operator fun contains(user: UserSnowflake): Boolean
Link copied to clipboard
abstract fun isOwner(user: UserSnowflake): Boolean

Whether this user is one of the bot owners.