How do I unregister commands to reregister them with updates?
How do I unregister commands to reregister them with updates?
97 Replies
get the command object from Discord and call
.delete()
but you don't have to do that if you're just updating a command
you can just create it againIt's not updating
I'm running this and it doesn't update
did you wait an hour before checking that?
global commands can take a while to be evicted from the client's cache
No, ah I remember that's a thing... IIRC you can do it on each guild and its instant right?
guild ones are usually instant yeah
How can I get access to all guilds we're in?
kord.guilds
current shard only I think
you seem like you're writing a framework, are you sure you wouldn't prefer to use an existing one?do I call that after .login or anywhere in particular? And wdym a framework?
I'm just copying the docs
ah, I see
kord provides the protocol implementation, frameworks provide the abstractions on top for actually writing the bot
and you'd have to call it after your guilds have been received
you might be better off reacting to the guild creation event
kord is just a wrapper of the discord API, and there are other higher level frameworks built on kord that would make my life easier?
pretty much yeah
Would you recommend any?
I maintain kordex so I'd rec that, but there's a comparison table here https://docs.kordex.dev/framework-comparison.html
Kord Extensions Help
Framework Comparison | Kord Extensions
Is it well documented?
well, that's the documentation site
it's not finished but a good chunk of the important stuff is done