disable sync on every launch

how to disable the sync that happens on every launch?
11 Replies
Favna
Favna2w ago
That is not possible. Why do you want this? It's something that shouldn't take more than a few seconds at most
ArikSquad
ArikSquadOP2w ago
for me it's taking like close to a minute to launch every time
Favna
Favna2w ago
That's not normal. How many commands do you have, what registry behaviour do you use, what's your internet speed, and in general please share more about your setup
ArikSquad
ArikSquadOP2w ago
I have around 50 commands, I have 900mbps internet, I use default registry behaviour I believe (not sure what you mean)
No description
ArikSquad
ArikSquadOP2w ago
No description
ArikSquad
ArikSquadOP2w ago
in every launch I get like super many of these
2025-08-16 14:37:13 - DEBUG - ApplicationCommandRegistry[daily] Preparing to process 1 possible command registrations / updates...
2025-08-16 14:37:13 - DEBUG - ApplicationCommandRegistry[daily] Checking if command "daily" is identical with global chat input command with id "1403876331078418512"
2025-08-16 14:37:13 - DEBUG - ApplicationCommandRegistry[daily] Registering id "1403876331078418512" to internal chat input map
2025-08-16 14:37:13 - DEBUG - ApplicationCommandRegistry[daily] Took 0ms to process differences via fast compute differences
2025-08-16 14:37:13 - DEBUG - ApplicationCommandRegistry[daily] Found differences for command "daily" (1403876331078418512) versus provided api data.
2025-08-16 14:37:15 - DEBUG - ApplicationCommandRegistry[daily] Updated command daily (1403876331078418512) with new api data
2025-08-16 14:37:13 - DEBUG - ApplicationCommandRegistry[daily] Preparing to process 1 possible command registrations / updates...
2025-08-16 14:37:13 - DEBUG - ApplicationCommandRegistry[daily] Checking if command "daily" is identical with global chat input command with id "1403876331078418512"
2025-08-16 14:37:13 - DEBUG - ApplicationCommandRegistry[daily] Registering id "1403876331078418512" to internal chat input map
2025-08-16 14:37:13 - DEBUG - ApplicationCommandRegistry[daily] Took 0ms to process differences via fast compute differences
2025-08-16 14:37:13 - DEBUG - ApplicationCommandRegistry[daily] Found differences for command "daily" (1403876331078418512) versus provided api data.
2025-08-16 14:37:15 - DEBUG - ApplicationCommandRegistry[daily] Updated command daily (1403876331078418512) with new api data
and it does them in like 4 command batches and it takes forever
Favna
Favna2w ago
If i remember correctly this means you didn't specify idHints for the commands so it's trying to match it based on name which means it has to go through all your commands Other than that you can look at this post see if you are in a similar situation https://discord.com/channels/737141877803057244/1312457902254063727/1312457902254063727
Favna
Favna2w ago
https://sapphirejs.dev/docs/Guide/commands/application-commands/application-command-registry/registering-chat-input-commands#idhints
public override registerApplicationCommands(registry: Command.Registry) {
registry.registerChatInputCommand((builder) =>
builder //
.setName(this.name)
.setDescription(this.description)
.addUserOption((option) =>
option //
.setName('user')
.setDescription('User to say hello to')
.setRequired(true)
), { idHints: [....] }
);
}
public override registerApplicationCommands(registry: Command.Registry) {
registry.registerChatInputCommand((builder) =>
builder //
.setName(this.name)
.setDescription(this.description)
.addUserOption((option) =>
option //
.setName('user')
.setDescription('User to say hello to')
.setRequired(true)
), { idHints: [....] }
);
}
Sapphire Framework
Registering Chat Input Commands | Sapphire
To register a Chat Input Command (also known as a Slash Command) with Discord, you need to acquire an application
ArikSquad
ArikSquadOP6d ago
wait I need to put idHints to everything? isn't this going to take 500 years for me to do ahh well I guess then also what if I have a beta bot?
Favna
Favna6d ago
2 ids in the array

Did you find this page helpful?