RoleTags

class RoleTags(val data: RoleTagsData, val guildId: Snowflake, val kord: Kord, val supplier: EntitySupplier = kord.defaultSupplier) : KordObject, Strategizable(source)

Constructors

Link copied to clipboard
constructor(data: RoleTagsData, guildId: Snowflake, kord: Kord, supplier: EntitySupplier = kord.defaultSupplier)

Properties

Link copied to clipboard

The ID of the bot this belongs to.

Link copied to clipboard
Link copied to clipboard

The guild behavior this tag belongs to.

Link copied to clipboard
Link copied to clipboard

The ID of the Integration this role belongs to.

Link copied to clipboard

Whether this role is available for purchase.

Link copied to clipboard

Whether this role is a guild's linked role.

Link copied to clipboard

Whether this is the guild's Booster role.

Link copied to clipboard
open override val kord: Kord

The kord instance that created this object.

Link copied to clipboard

The ID of this role's subscription sku and listing.

Link copied to clipboard
open override val supplier: EntitySupplier

The supplier used to request entities.

Functions

Link copied to clipboard
suspend fun getBot(): Member?

Requests to get the bot of this tag through the supplier, returns null if the Member isn't present.

Link copied to clipboard
suspend fun getGuild(): Guild

Requests to get the guild of this tag through the supplier.

Link copied to clipboard
suspend fun getGuildOrNull(): Guild?

Requests to get the guild of this tag through the supplier, returns null if the Guild isn't present.

Link copied to clipboard
suspend fun getIntegration(): Integration?

Requests to get the integration of this tag through the supplier, returns null if the Integration isn't present.

Link copied to clipboard
open override fun withStrategy(strategy: EntitySupplyStrategy<*>): Strategizable

Returns a copy of this class with a new supplier provided by the strategy.