sbot50
sbot50
Explore posts from servers
KKord
Created by sbot50 on 12/13/2024 in #help
Is there a good way to register all commands at once?
I tried literally everything to get getKord().createGlobalApplicationCommands {} to function But unless i wanna create a massive file with every command in there seperately, it wont work. ATM all the registering code is inside its own class files. but as soon as i try doing input("a","b") {} (for example) inside a loop it wont work, even if said loop only runs once. Now my previous method of just spamming dc with register requests for each command on startup... works... but i would rather not have to do that, since sooner or later itll ratelimit me. To be clear, yes doing doing:
getKord().createGlobalApplicationCommands {
input("a","b") {}
input("c","d") {}
input("e","f") {}
}
getKord().createGlobalApplicationCommands {
input("a","b") {}
input("c","d") {}
input("e","f") {}
}
works, but I would rather not have to do that (im using normal kord, not kord extensions)
15 replies
KKord
Created by sbot50 on 11/20/2024 in #help
How do I get the category a channel is in?
How do I get the category a channel is in, if any? I cant find it, I thought maybe its just based on whatever .getPosition() is but that seems like just a random number lol.
3 replies
KKord
Created by sbot50 on 11/7/2024 in #help
How do you create an embed?
I might be AM very stupid. But the only way i saw how to make an embed is to get a messagechannel and do .createMessage on there. But how do i send an embed as a reponse to an interaction? cause thats required a list of embeds (obv) but idk how to make a singular embed to put in that list.
4 replies
DIdiscord.js - Imagine ❄
Created by sbot50 on 6/21/2024 in #djs-questions
Message interaction is null
is there still a way to get the interaction associated with the message? Because i have a bot where if you use a slash command it responds with a message with buttons. I want to limit those buttons to only the person why send the intiial interaction, but for some reason when i fetch the msg or get it from the button interaction the interaction associated with the message is null (unless its the first time you click the button for whatever reason) Now short of just making the custom id of the buttons the persons id, is there any way to get the interaction, or a wait to get who send the initial interaction.
5 replies