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?
Possible to intercept a request to modify the payload?
</slash command:id>
in several commands but I can't hardcode it as the ID changes whenever you update a command. So I just cache all the command IDs on load, but then I'd still have to format it in every single response. Instead I'd like to just intercept the request and format it in one function than every command I have or will add....How do you create an embed?
How to add a file to a message as an attachment?
file.inputStream()
but to no avail, and I can't find how to do this anywhere. I have a File
(and its path as a String
) and I wanna attach it in a createMessage
. That's it. 🙂
Edit : forgot to mention but I use Kotlin, not Groovy...Missing `DiscordChannel.message` for thread channels
How to generate push messages in channels?
User installed command events not being received.
User Install
enabled in the developer portal and both integration_types
and contexts
are also added to the commands that should be used by users and the types of channels they can be used in.
Kord doesn't official support User Apps but I modified the outgoing payload to add the two fields which does work, and some checks once an interaction is received to determine if it's an user app or server app integration type.
The issue is I only receive events if the bot was installed to the guild. Previously (several hours ago), I did receive events for user installed apps in other guilds, DMs, and Group DMs. ...Does receiveVoice still work?
Can't get guild members
interaction.guild.members.toList()
...