EmojiService

class EmojiService(requestHandler: RequestHandler) : RestService(source)

Constructors

Link copied to clipboard
constructor(requestHandler: RequestHandler)

Functions

Link copied to clipboard
suspend fun createEmoji(guildId: Snowflake, emoji: EmojiCreateRequest, reason: String? = null): DiscordEmoji
inline suspend fun createEmoji(guildId: Snowflake, name: String, image: Image, builder: EmojiCreateBuilder.() -> Unit = {}): DiscordEmoji
Link copied to clipboard
suspend fun deleteEmoji(guildId: Snowflake, emojiId: Snowflake, reason: String? = null)
Link copied to clipboard
suspend fun getEmoji(guildId: Snowflake, emojiId: Snowflake): DiscordEmoji
Link copied to clipboard
suspend fun getEmojis(guildId: Snowflake): List<DiscordEmoji>
Link copied to clipboard
inline suspend fun modifyEmoji(guildId: Snowflake, emojiId: Snowflake, builder: EmojiModifyBuilder.() -> Unit): DiscordEmoji