PermissionOverwriteEntity

class PermissionOverwriteEntity(val guildId: Snowflake, val channelId: Snowflake, val data: PermissionOverwriteData, val kord: Kord, val supplier: EntitySupplier = kord.defaultSupplier) : PermissionOverwrite, KordObject, Strategizable(source)

Constructors

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

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val kord: Kord

The kord instance that created this object.

Link copied to clipboard
open override val supplier: EntitySupplier

The supplier used to request entities.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
suspend fun delete(reason: String? = null)

Requests to delete this overwrite.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard

Requests to get the channel this overwrite applies to.

Link copied to clipboard

Requests to get the channel this overwrite applies to, returns null if the TopGuildChannel isn't present.

Link copied to clipboard
suspend fun getGuild(): Guild

Requests to get the the guild of this overwrite.

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

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

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard

Returns a new PermissionOverwriteEntity with the given strategy.