#global vs. guild cmds
1 messages ยท Page 1 of 1 (latest)
no idea what you mean by caching differs here
if the command is the exact same across the board and you want it to be available in all guilds it should probably be global
Beuh
In Discord API docs, they specified it will cache the slashes for every one hr
Thwy wanna API Spam
if you want your command modules to be configurable, you probably want guild cmds
Registering everytime thwy join a server
is not spam, shoo
uh souji knows more than me but i just thought to say that making per guild commands like just for a specific guild is almost instant while global can take up to 1h
Whatif they restart bot
The "configurable" means?
Like adding extras for specific guilds?
oh
client.guilds.forEach(async (guild) => {
await client.guilds.cache.get(guild.id).commands.set(TheirSlashCmds)
})
This will be API spam right ๐ค
some have also used that for translations before, but that's getting a native thingy now
well, maybe don't do it on every bot restart, but that's not the question
The ram it takes for local and global might varies ๐ค
what
oh
If they register locally everytime bot joins a guild
Then
When they restart
You know if you know :)
yeah, well, don't, lol
apply changes if you know you made changes
not when the bot starts, that's just wrong usage of the endpoint
Btw
Can MessageEmbed().setImage() have gifs link?
If not, how can I have gifs in MessageEmbed()s
do not see how that's relevant to global vs. guild cmds
Let's take if we want to alter slash something like adding another option. So, it will take around 1 hour to complete the update?
for globals, yes
dev on guild commands, once you know it works, deploy it to global
though these days it takes much less time in my experience, they improved the turnaround a lot there
oh
Then it would be crt
So global thingy is good based on ur experience
For public bot
i develop commands on a test server with guild commands
then when i know they work as they should i deploy them to global, yes
That's good method to do!
That's nice
oh yeah, i forgor to deploy my ban command ๐
one sec
alr good
If we want to see the result how it works in global, we should wait for 1 hr
Whereas, testing inside guild and turnaround global = Good
i mean... "how it works in global" is the same as it works on a guild cmd
yes
i would recommend making your commands handler take an option for example in my case testonly whenever thats set to true it just sets the command only in ur test guild if its false it sets it in all guilds (globally)
no problem
tfw not a mate

idk he may be british
hm?
"mates and souji"
implies that's a disjunct set
so there is {mate1, mate2, mate3} and {Souji}
Souji not being part of mates
ooooh
Bruh

its more like giving u more credit like uh idk

anyways
Yeah
's okay i'm mostly meming, no problem 
oh well, i just woke up i may not get them
rare these days
my memes/jokes are also known to be notoriously bad, so that's understandable
notoriously 
