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()
...Is there a way to make kord automatically reconnect after an error?
[Kotlin/Native] Slow connection issues
feature/native
on Linux). about 90% of interactions fail, i can't even defer them to respond later. so far i couldn't upload files too, and it takes 10 seconds for a message to be sent (and retrieved afterwards). what's strange is that it always takes 10 seconds. here's the code for the last part:
```kt
val (message, restLatency) = measureTimedValue {
ctx.message.reply("Calculating...") // this is sent instantly though
}...Is Kord meant for other api features other than bots?
Check if embed, actionRow etc. has been modified
[Kotlin/Native] Linking stage fails
`getMember` not writing to Member cache?
GuildChannel.botHasPermissions
, and its first step is calling GuildBehaviour.getMember
with the bot's snowflake.
The problem is that this is doing a REST call every single time and therefore greatly slowing my process, not to mention the possibl rate limit implications....Cancelling the event listener job inside the event listener
Job
returned by Kord#on
inside its scope? I doubt it, but would something like this do the trick:
```kt
var job: Job? = null
job = kord.on<Event> {
job?.cancel()...Is Kord#getApplicationInfo() cached?
Kord#getApplicationInfo()
backed by a cache? I'd like to check if the message author is the owner of the application.Can't find a way to disconnect/kick someone
Runtime Error
Publish multiplatform library (not Discord bot)
Support of native targets (not Discord bot)