#slash-commands are not synced
1 messages · Page 1 of 1 (latest)
Do not sync in on_ready
So where do I put it?
this is not happening
try setting your bot's command sync flags to include commands_sync_debug
Whether or not to show app command sync debug messages.
I had the wrong name, oops, iac this one^
it should help us determine why command synchronisation is failing
did you restarted discord client
class KStudyClient(commands.InteractionBot):
def __init__(self):
intents = disnake.Intents.all()
super().__init__(intents=intents)
async def on_ready(self):
print(f"Logged on as {self.user}")
await self.load_commands()
async def load_commands(self):
for file in os.listdir("./commands"):
if file.endswith(".py"):
self.load_extension("commands." + file[:-3])
print(f"Loaded: command.{file[:-3]}")
But you're not supposed to do that
yes you're
It is supposed to synchronize without restarting the client
it's supposed to, yes, but the discord client is very unreliable when it comes to this
So has that changed?
no
it's always been that way lol
Previously, commands were synchronized without restarting the client
in my experience it's always been inconsistent
this is due to perf issues serverside i guess
sometimes they do, sometimes they don't
it does update when it's being synced on guild
if - after reloading - it still doesn't show up, it's probably an issue with your code
and at that point we're gonna have to enable command sync debug to see what's going on
No man, the code is right
they sync after restarting the client
yeah so that's exactly what you were told 
It's a server-side problem
wait I think I can find my code from a while ago that proves this
no we don't need proof
we're well aware of how this works
been doing this for long enough lmao
naaaa
Initially, Discord's slash commands propagated changes differently depending on whether they were guild-specific or global. Guild-specific commands (designed for use in particular servers) updated almost instantly, making them ideal for testing and immediate feedback. However, global commands (accessible across all servers where the bot is used) faced delays due to technical limitations in their distribution infrastructure. This delay was tied to the way Discord stored and synced command metadata across its vast network【13】【14】【15】.
yeah this was ages ago
and completely irrelevant to what we've been observing over the past couple months
I remember well in the past making bots and this synchronized without having to restart the client
that's cool and all
try getting more recent info
but it's just been noticeably inconsistent for everyone in the past few months
regardless of what discord itself says, it's just plain inconsistent.
it's one quick search away to see how often we have to recommend reloading the client for commands to show up
and how often that works.
I've been out of discord these last few years, and I don't know, I wanted to make a bot for discord again
you are free to restart the client, don't see the harm in doing so