LustigerLurch
LustigerLurch
KKord
Created by Tic on 9/18/2024 in #help
Check if embed is removed by user
it sets MessageFlag.SuppressEmbeds in the flags of the message. you should also be able to use that flag to determine when the embeds are removed by a user.
32 replies
KKord
Created by Tic on 9/18/2024 in #help
Check if embed is removed by user
you can bring the embed back by adding suppressEmbeds = false to the message (modify) builder
32 replies
KKord
Created by Tic on 9/18/2024 in #help
Check if embed is removed by user
it will be the id of a followup you created to the intial response - otherwise there are no followups
32 replies
KKord
Created by ieatfries on 9/12/2024 in #help
How to generate push messages in channels?
if you want to get the channel by id, you can do this:
val channel = kord.getChannelOf<MessageChannel>(id)
val channel = kord.getChannelOf<MessageChannel>(id)
25 replies
KKord
Created by ieatfries on 9/12/2024 in #help
How to generate push messages in channels?
something like this should do:
guild.channels
.filterIsInstance<MessageChannel>()
.collect { channel ->
channel.createMessage { content = "text" }
}
guild.channels
.filterIsInstance<MessageChannel>()
.collect { channel ->
channel.createMessage { content = "text" }
}
25 replies
KKord
Created by ieatfries on 9/12/2024 in #help
How to generate push messages in channels?
it's just a technicality - channels in a guild just exist and you need a permission to be able to view them and also to send messages in them
25 replies
KKord
Created by Solaris on 9/9/2024 in #help
User installed command events not being received.
i haven't yet looked into user-installed apps, but let me know if you figure it out
19 replies
KKord
Created by Tic on 8/13/2024 in #help
Check if embed, actionRow etc. has been modified
they do here too, but i chose latin over french - idk why though xD
82 replies
KKord
Created by Tic on 8/13/2024 in #help
Check if embed, actionRow etc. has been modified
for JVM, you can use any slf4j implementation, for other platforms (JS for now) you need to use https://github.com/oshai/kotlin-logging
82 replies
KKord
Created by Tic on 8/13/2024 in #help
Check if embed, actionRow etc. has been modified
what platform do you target? JVM or JS?
82 replies
KKord
Created by Tic on 8/13/2024 in #help
Check if embed, actionRow etc. has been modified
logback avec kotlin multiplatform?
82 replies
KKord
Created by Tic on 8/13/2024 in #help
Check if embed, actionRow etc. has been modified
82 replies
KKord
Created by Tic on 8/13/2024 in #help
Check if embed, actionRow etc. has been modified
it will look something like this:
82 replies
KKord
Created by Tic on 8/13/2024 in #help
Check if embed, actionRow etc. has been modified
trace level logs it
82 replies
KKord
Created by Tic on 8/13/2024 in #help
Check if embed, actionRow etc. has been modified
no, a fresh builder will default to everything not required to be missing/null (whatever is allowed for a particular endpoint). so you just add what you need, use it for one request, and then let go of it.
82 replies
KKord
Created by Tic on 8/13/2024 in #help
Check if embed, actionRow etc. has been modified
if you use kord's dsl functions, you shouldn't even have to create builder instances yourself but just use them as a receiver in a lambda / extension function
82 replies
KKord
Created by Tic on 8/13/2024 in #help
Check if embed, actionRow etc. has been modified
that's one reason why you shouldn't reuse builder objects
82 replies
KKord
Created by Tic on 8/13/2024 in #help
Check if embed, actionRow etc. has been modified
you need to check for changes in the second render. if there aren't any, just don't set the properties of the kord builder, just like here
82 replies
KKord
Created by Peffern on 9/2/2024 in #help
Does receiveVoice still work?
hm, i haven't worked with voice much, maybe @Lost or @viztea can help
20 replies
KKord
Created by Tic on 8/13/2024 in #help
Check if embed, actionRow etc. has been modified
you instead shouldn't touch it
82 replies