found differences for command when i havent made any changes

not sure whats happening but i havent made any changes and it still says its finding differences
No description
Solution:
@iaqi replace your gear emote
Jump to solution
35 Replies
Favna
Favnaā€¢13mo ago
did you add idHints after you sent the code last? because you didn't add them before. Either way if you dont even want to bother just enable bulk overwrite in your index.ts
import { ApplicationCommandRegistries, RegisterBehavior } from '@sapphire/framework';

ApplicationCommandRegistries.setDefaultBehaviorWhenNotIdentical(RegisterBehavior.BulkOverwrite);
import { ApplicationCommandRegistries, RegisterBehavior } from '@sapphire/framework';

ApplicationCommandRegistries.setDefaultBehaviorWhenNotIdentical(RegisterBehavior.BulkOverwrite);
iaqi
iaqiOPā€¢13mo ago
this is for a different bot but yeah i do have idHints
Favna
Favnaā€¢13mo ago
working on multiple projects at the same time šŸ¤” wouldnt it be wiser to finish one project before starting another
iaqi
iaqiOPā€¢13mo ago
i was doing it for a friend cause he wanted a bot like that matchmaking and stuff will do this ig but just wanted to let you know in case of a potential issue with the sapphire code
Favna
Favnaā€¢13mo ago
(if he wants match making just make him use https://challonge.com btw)
Challonge
The Ultimate Source for Tournament Brackets
iaqi
iaqiOPā€¢13mo ago
damn never seen this before looks cool
Favna
Favnaā€¢13mo ago
you'd be the only one of many to face this issue. I'm sure Sapphire correctly reports that there are changes. Pretty sure all the things with application commands have been ironed out thoroughly by now. Either way, @vladdy (who made that code) nor I will just like before not be able to help without detailed code. Always provide as much detail as possible
Spinel
Spinelā€¢13mo ago
When asking for help, make sure to provide as much detail as possible. What have you tried so far? Do you have stacktraces that you can show us? What are you trying to achieve? Try to answer these questions and others, so we do not have to ask for them afterwards.
āÆ For a good guide on how to ask questions, see the instructions that StackOverflow gives. You should try to always follow these guidelines. āÆ For an excellent video that shows how not to ask technical questions is this, watch this YouTube video by LiveOverflow. āÆ Asking technical questions (Clarkson) āÆ How to ask questions the smart way (Raymond)
iaqi
iaqiOPā€¢13mo ago
can put the whole SettingsCommand.ts in a hastebin https://hastebin.skyra.pw/cofasuposi.ts
iaqi
iaqiOPā€¢13mo ago
šŸ˜‚
No description
vladdy
vladdyā€¢13mo ago
found DIFFERENCES can you get me your command json
iaqi
iaqiOPā€¢13mo ago
command json?
vladdy
vladdyā€¢13mo ago
as in the slash command json you have
iaqi
iaqiOPā€¢13mo ago
.
vladdy
vladdyā€¢13mo ago
aka your registerApplicationCommands method oh no doy ty
iaqi
iaqiOPā€¢13mo ago
np
Favna
Favnaā€¢13mo ago
okay so the comparison is definitely failing @vladdy, I can reproduce it as well. Didn't someone report a long while ago before there was an issue with channel options? I seem to recall something like that.
vladdy
vladdyā€¢13mo ago
no clue
Favna
Favnaā€¢13mo ago
https://github.com/sapphiredev/framework/issues/692 created a GH issue for it. This has full command code that doesn't expire like the hastebin will. Also stubbed out all the actual methods so no prisma or whatever is needed.
GitHub
[SFW-81] bug: application command comparison failing causing comman...
Is there an existing issue for this? I have searched the existing issues Description of the bug Given a specific configuration for registering a command, the deep comparison is failing causing the ...
iaqi
iaqiOPā€¢13mo ago
all good then hope this gets fixed
Favna
Favnaā€¢13mo ago
for the record, 9/10 times it is something in terms of config lol... I guess you found that last 1 of 10
vladdy
vladdyā€¢13mo ago
okk time to get off my lazy ass and investigate this
iaqi
iaqiOPā€¢13mo ago
yay!!!
vladdy
vladdyā€¢13mo ago
well i did progress, but it'll probs be done tomorrow or so
[DEBUG] ApplicationCommandRegistry[sub] Checking if command "sub" is identical with global chat input command with id "1175936130978414613"
[DEBUG] ApplicationCommandRegistry[sub] Took 0ms to process differences via computing differences
[DEBUG] ApplicationCommandRegistry[sub] Found differences for command "sub" (1175936130978414613) versus provided api data.
ā””ā”€ā”€ At path: options[0].description
ā”œā”€ā”€ Received: list the current settings of the bot for the current server āš™
ā””ā”€ā”€ Expected: list the current settings of the bot for the current server āš™ļø
ā””ā”€ā”€ At path: options[1].description
ā”œā”€ā”€ Received: set the settings of the bot for the current server āš™
ā””ā”€ā”€ Expected: set the settings of the bot for the current server āš™ļø
ā””ā”€ā”€ At path: options[1].options[0].description
ā”œā”€ā”€ Received: change the modlog channel for the current server āš™
ā””ā”€ā”€ Expected: change the modlog channel for the current server āš™ļø
ā””ā”€ā”€ At path: options[1].options[1].description
ā”œā”€ā”€ Received: change the auditlog channel for the current server āš™
ā””ā”€ā”€ Expected: change the auditlog channel for the current server āš™ļø
ā””ā”€ā”€ At path: options[1].options[2].description
ā”œā”€ā”€ Received: change the welcome channel for the current server āš™
ā””ā”€ā”€ Expected: change the welcome channel for the current server āš™ļø
[DEBUG] ApplicationCommandRegistry[sub] Checking if command "sub" is identical with global chat input command with id "1175936130978414613"
[DEBUG] ApplicationCommandRegistry[sub] Took 0ms to process differences via computing differences
[DEBUG] ApplicationCommandRegistry[sub] Found differences for command "sub" (1175936130978414613) versus provided api data.
ā””ā”€ā”€ At path: options[0].description
ā”œā”€ā”€ Received: list the current settings of the bot for the current server āš™
ā””ā”€ā”€ Expected: list the current settings of the bot for the current server āš™ļø
ā””ā”€ā”€ At path: options[1].description
ā”œā”€ā”€ Received: set the settings of the bot for the current server āš™
ā””ā”€ā”€ Expected: set the settings of the bot for the current server āš™ļø
ā””ā”€ā”€ At path: options[1].options[0].description
ā”œā”€ā”€ Received: change the modlog channel for the current server āš™
ā””ā”€ā”€ Expected: change the modlog channel for the current server āš™ļø
ā””ā”€ā”€ At path: options[1].options[1].description
ā”œā”€ā”€ Received: change the auditlog channel for the current server āš™
ā””ā”€ā”€ Expected: change the auditlog channel for the current server āš™ļø
ā””ā”€ā”€ At path: options[1].options[2].description
ā”œā”€ā”€ Received: change the welcome channel for the current server āš™
ā””ā”€ā”€ Expected: change the welcome channel for the current server āš™ļø
what the fuck o h āš™ āš™ļø oh āš™ļø
Solution
vladdy
vladdyā€¢13mo ago
@iaqi replace your gear emote
vladdy
vladdyā€¢13mo ago
That'll solve the always matching
iaqi
iaqiOPā€¢13mo ago
was that it lol damn bruh
vladdy
vladdyā€¢13mo ago
in your case, yes for the future, use RegisterBehavior.VerboseOverwrite if you spot a command wrongly updating and of course, report here if its wrongly happening or you think its wrongly happening
Favna
Favnaā€¢13mo ago
wait my midnight brain isn't functioning. ELI5 @vladdy ?
vladdy
vladdyā€¢13mo ago
TL;DR: the gear unicode they were using was not the escaped emote but rather some other symbol, discord interpreted it differently than code
iaqi
iaqiOPā€¢13mo ago
i just used win and . to find the cog emote it worked before
vladdy
vladdyā€¢13mo ago
yeahhhh best bet is to send it in discord escaped (slap a \ in front of it) and copy that in
iaqi
iaqiOPā€¢13mo ago
when i use the unicode it shows up as the question mark symbol in vscode cause i use the jetbrains mono font tysm yeah i will
vladdy
vladdyā€¢13mo ago
i use that font too and have never had that issue usually if it shows question marks it means you didnt copy the whole emote
iaqi
iaqiOPā€¢13mo ago
really huh
Want results from more Discord servers?
Add your server