#global vs. guild cmds

1 messages ยท Page 1 of 1 (latest)

wide wing
#

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

foggy void
#

Beuh

thick valley
#

In Discord API docs, they specified it will cache the slashes for every one hr

foggy void
#

Thwy wanna API Spam

wide wing
#

if you want your command modules to be configurable, you probably want guild cmds

foggy void
#

Registering everytime thwy join a server

wide wing
#

is not spam, shoo

foggy void
#

with local method

#

:0

fringe trail
#

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

foggy void
#

Whatif they restart bot

thick valley
#

Like adding extras for specific guilds?

wide wing
#

"disable command foobar in this guild"

#

just different command setups for guilds

thick valley
foggy void
#
client.guilds.forEach(async (guild) => {
   await client.guilds.cache.get(guild.id).commands.set(TheirSlashCmds)
})

This will be API spam right ๐Ÿค”

wide wing
#

some have also used that for translations before, but that's getting a native thingy now

wide wing
thick valley
#

The ram it takes for local and global might varies ๐Ÿค”

wide wing
#

what

foggy void
#

Then

#

When they restart

#

You know if you know :)

wide wing
#

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

foggy void
#

Btw

#

Can MessageEmbed().setImage() have gifs link?

#

If not, how can I have gifs in MessageEmbed()s

wide wing
#

do not see how that's relevant to global vs. guild cmds

thick valley
# wide wing what

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?

wide wing
#

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

thick valley
#

oh

#

Then it would be crt

#

So global thingy is good based on ur experience

#

For public bot

wide wing
#

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

thick valley
#

That's nice

fringe trail
#

one sec

#

alr good

thick valley
#

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

wide wing
#

i mean... "how it works in global" is the same as it works on a guild cmd

thick valley
#

yes

fringe trail
thick valley
#

Let's see

#

Thanks mates! And Souji!

fringe trail
wide wing
#

tfw not a mate

thick valley
fringe trail
wide wing
#

hm?

#

"mates and souji"
implies that's a disjunct set
so there is {mate1, mate2, mate3} and {Souji}
Souji not being part of mates

fringe trail
#

ooooh

thick valley
#

Bruh

wide wing
thick valley
#

Thanks buddies

#

All

fringe trail
wide wing
fringe trail
#

anyways

thick valley
#

Yeah

wide wing
#

's okay i'm mostly meming, no problem kek

thick valley
#

๐Ÿ˜‚

#

Different type mod. I mean pog mod

fringe trail
fringe trail
wide wing
#

my memes/jokes are also known to be notoriously bad, so that's understandable

thick valley
#

notoriously drakeLUL

wide wing
#

anywho, shower time