Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 919 Bytes

README.md

File metadata and controls

41 lines (32 loc) · 919 Bytes

kordx.emoji

Discord

An extension library that adds a list of supported emojis to Kord.

suspend fun MessageCreateEvent.handle() {
    if (message.content != "!ping") return

    message.addReaction(Emojis.pingPong)

    message.channel.createMessage("${Emojis.stopwatch} gateway latency is:${kord.gateway.ping.toLongMilliseconds()} ms")
}

Installation

Replace {version} with the desired version number.

Gradle (groovy)

dependencies {
    implementation 'dev.kord.x:emoji:{version}'
}

Gradle (kotlin)

dependencies { 
    implementation("dev.kord.x:emoji:{version}")
}

Maven

<dependency>
    <groupId>dev.kord.x</groupId>
    <artifactId>emoji</artifactId>
    <version>{version}</version>
</dependency>