Kord does not recover from UnknownHostException
UnknownHostException
- at least not fully as the Discord bot appears as offline
and does no longer react to application commands until it is restarted. I ran into this issue two times in the past few weeks. The bot is using google dns to resolve hostnames.
Stack trace is attached as screenshot since... discord message character limit...
Also, here's the project in case you want to look something up: https://github.com/DarkAtra/v-rising-discord-bot...
Removing components from message with edit
MessageModifyBuilder
block, I've tried setting components
to null, empty list, I've tried calling components { }
, I've tried adding an empty action row in there (actionRow { }
).
In all cases, I get the following:
{"components":{"0":{"components":{"_errors":[{"code":"BASE_TYPE_REQUIRED","message":"This field is required"}]}}}}
{"components":{"0":{"components":{"_errors":[{"code":"BASE_TYPE_REQUIRED","message":"This field is required"}]}}}}
Basic bot isnt... doing anything?
(Not Kord) Deserialize JSON with unordered fields (Kotlin Serialization)
Select Intent
intents {
enableEvent<AnEventType>()
}
intents {
enableEvent<AnEventType>()
}
Bot reccuringly not responding at specific times

java.io.EOFException on dev.kord.gateway.DefaultGateway
Error after adding kord dependency
Get Heartbeat of Gateway
Is there a good way to register all commands at once?
getKord().createGlobalApplicationCommands {}
to function
But unless i wanna create a massive file with every command in there seperately, it wont work....Adding a file to a message using getResourceAsStream
val imageStream = javaClass.getResourceAsStream("/images/headerLink.png")
?: throw IllegalArgumentException("Image not found: /images/headerLink.png")
val imageStream = javaClass.getResourceAsStream("/images/headerLink.png")
?: throw IllegalArgumentException("Image not found: /images/headerLink.png")
ChannelProvider { imageStream.toByteReadChannel() }
Embed markdown for headers not working properly

Ephemeral message
if (!isAdmin) {message.channel.createMessage(content = "You don't have enough permissions!")}
if (!isAdmin) {message.channel.createMessage(content = "You don't have enough permissions!")}
Custom status/activity

ClassNotFoundException: kotlinx.io.unsafe.UnsafeBufferOperations
ClassNotFoundException: kotlinx.io.unsafe.UnsafeBufferOperations
. I have all the libraries loading, including kotlinx-io-core-jvm
which the error is from. Any clues what could be the problem?Dependency conflicts...
Opus stream to wav?
Commands stop working after running for a longer amount of time
How do I get the category a channel is in?