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")
}
Replace {version}
with the desired version number.
dependencies {
implementation 'dev.kord.x:emoji:{version}'
}
dependencies {
implementation("dev.kord.x:emoji:{version}")
}
<dependency>
<groupId>dev.kord.x</groupId>
<artifactId>emoji</artifactId>
<version>{version}</version>
</dependency>