GuildEmoji

class GuildEmoji(val data: EmojiData, val kord: Kord, val supplier: EntitySupplier = kord.defaultSupplier) : Emoji, KordEntity, Strategizable(source)

An instance of an emoji belonging to a specific Guild.

Constructors

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

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val id: Snowflake

The unique identifier of this entity.

Link copied to clipboard

The image of this emoji as an Asset.

Link copied to clipboard

Whether is emoji is animated.

Link copied to clipboard

Whether this emoji can be used, may be false due to loss of Server Boosts.

Link copied to clipboard

Whether is emote is managed by Discord instead of the guild members.

Link copied to clipboard
open override val kord: Kord

The kord instance that created this object.

Link copied to clipboard

The behavior of the Member who created the emote, if present.

Link copied to clipboard
open override val mention: String

Either the unicode representation of the emoji if it's a StandardEmoji or the mention string if it's a GuildEmoji.

Link copied to clipboard
open override val name: String?

The name of this emoji.

Link copied to clipboard

Whether this emoji needs to be wrapped in colons.

Link copied to clipboard

The behaviors of the roles for which this emoji was whitelisted.

Link copied to clipboard

The ids of the roles for which this emoji was whitelisted.

Link copied to clipboard

The roles for which this emoji was whitelisted.

Link copied to clipboard
open override val supplier: EntitySupplier

The supplier used to request entities.

Link copied to clipboard

The User who created the emote, if present.

Link copied to clipboard

The id of the User who created the emote, if present.

Functions

Link copied to clipboard
open operator override fun compareTo(other: Entity): Int

Compares entities on id.

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

Requests to delete this emoji, with the given reason.

Link copied to clipboard
inline suspend fun edit(builder: EmojiModifyBuilder.() -> Unit)

Requests to edit the emoji.

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

Requests to get the creator of the emoji as a Member, returns null if the Member isn't present or userId is null.

Link copied to clipboard
suspend fun getUser(): User?

Requests to get the creator of the emoji as a User, returns null if the User isn't present or userId is null.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
open override fun withStrategy(strategy: EntitySupplyStrategy<*>): GuildEmoji

Returns a new GuildEmoji with the given strategy.