Somehow registry not registering

@vladdy Bug Report: Code: https://v.gd/Ftwkcz Problem: Help command not being registered Expected outcome: When help command is registered like all other commands it is shown in discord like the other commands and is functional Actual outcome: When help command is registered like all other commands it does not show in discord and cannot be used. Sapphire logs this when using "Debug" logger level: [DEBUG] ApplicationCommandRegistry[help] Preparing to process 0 possible command registrations / updates.... Compared to other commands returning this:
[DEBUG] ApplicationCommandRegistry[clear] Preparing to process 1 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[clear] Checking if guild chat input command "clear" is identical to command "923769774448738335"
[DEBUG] ApplicationCommandRegistry[clear] Registering id "923769774448738335" to internal chat input map
[DEBUG] ApplicationCommandRegistry[clear] Took 0ms to process differences
[DEBUG] ApplicationCommandRegistry[clear] Command "clear" is identical to command "clear" (923769774448738335)
[DEBUG] ApplicationCommandRegistry[clear] Preparing to process 1 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[clear] Checking if guild chat input command "clear" is identical to command "923769774448738335"
[DEBUG] ApplicationCommandRegistry[clear] Registering id "923769774448738335" to internal chat input map
[DEBUG] ApplicationCommandRegistry[clear] Took 0ms to process differences
[DEBUG] ApplicationCommandRegistry[clear] Command "clear" is identical to command "clear" (923769774448738335)
This command was working though after about a week for some reason the command got removed from the server (it's a guild command) (wasnt removed by any users (im the only user) and not the bot) now I cant register it Code is linked above, let me know if you need anything else
GitHub
vacbot/help.ts at port-commands · vacanadadev/vacbot
The Discord Bot that runs the VACANADA Community Discord Server - vacbot/help.ts at port-commands · vacanadadev/vacbot
18 Replies
vladdy
vladdy3y ago
Do you get any errors in the console? Did you disable the included error listeners? Because your code looks fine.. And it should be registering The fact it says 0 is concerning because unless there's an error somewhere.. that should work
lordflippers
lordflippersOP3y ago
No errors except for the fact that it is not registering. Going to try with a different bot account to see if it's an API problem. I haven't disabled any listeners
vladdy
vladdy3y ago
that makes no sense it should be registering in the registry wth
lordflippers
lordflippersOP3y ago
It is not a problem with the bot account. I tried with a different account and these are the logs that I get. This is the first time this account has registered these commands:
[nodemon] starting `node .`
[INFO] ApplicationCommandRegistries: Initializing...
[INFO] Successfully logged in as TicketerTesting (891340733582299186)
[DEBUG] ApplicationCommandRegistry[help] Preparing to process 0 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[clear] Preparing to process 1 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[clear] Creating new guild chat input command with name "clear" for guild "921757111548018748"
[INFO] ApplicationCommandRegistry[clear] Successfully created chat input guild command "clear" with id "925756616354168902". You should add the id to the
"idHints" property of the register method you used!
[DEBUG] ApplicationCommandRegistry[clear] Registering id "925756616354168902" to internal chat input map
[DEBUG] ApplicationCommandRegistry[slowmode] Preparing to process 1 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[slowmode] Creating new guild chat input command with name "slowmode" for guild "921757111548018748"
[INFO] ApplicationCommandRegistry[slowmode] Successfully created chat input guild command "slowmode" with id "925756616798765116". You should add the id to the "idHints" property of the register method you used!
[DEBUG] ApplicationCommandRegistry[slowmode] Registering id "925756616798765116" to internal chat input map
[DEBUG] ApplicationCommandRegistry[eval] Preparing to process 1 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[eval] Creating new guild chat input command with name "eval" for guild "921757111548018748"
[INFO] ApplicationCommandRegistry[eval] Successfully created chat input guild command "eval" with id "925756616995921933". You should add the id to the "idHints" property of the register method you used!
[DEBUG] ApplicationCommandRegistry[eval] Registering id "925756616995921933" to internal chat input map
[DEBUG] ApplicationCommandRegistry[ping] Preparing to process 1 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[ping] Creating new guild chat input command with name "ping" for guild "921757111548018748"
[INFO] ApplicationCommandRegistry[ping] Successfully created chat input guild command "ping" with id "925756617885102130". You should add the id to the "idHints" property of the register method you used!
[DEBUG] ApplicationCommandRegistry[ping] Registering id "925756617885102130" to internal chat input map
[DEBUG] ApplicationCommandRegistry[weather] Preparing to process 1 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[weather] Creating new guild chat input command with name "weather" for guild "921757111548018748"
[INFO] ApplicationCommandRegistry[weather] Successfully created chat input guild command "weather" with id "925756618304520292". You should add the id to
the "idHints" property of the register method you used!
[DEBUG] ApplicationCommandRegistry[weather] Registering id "925756618304520292" to internal chat input map
[DEBUG] ApplicationCommandRegistry[register] Preparing to process 1 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[register] Creating new guild chat input command with name "register" for guild "921757111548018748"
[INFO] ApplicationCommandRegistry[register] Successfully created chat input guild command "register" with id "925756702748442694". You should add the id to the "idHints" property of the register method you used!
[DEBUG] ApplicationCommandRegistry[register] Registering id "925756702748442694" to internal chat input map
[INFO] ApplicationCommandRegistries: Took 20,889ms to initialize.
[nodemon] starting `node .`
[INFO] ApplicationCommandRegistries: Initializing...
[INFO] Successfully logged in as TicketerTesting (891340733582299186)
[DEBUG] ApplicationCommandRegistry[help] Preparing to process 0 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[clear] Preparing to process 1 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[clear] Creating new guild chat input command with name "clear" for guild "921757111548018748"
[INFO] ApplicationCommandRegistry[clear] Successfully created chat input guild command "clear" with id "925756616354168902". You should add the id to the
"idHints" property of the register method you used!
[DEBUG] ApplicationCommandRegistry[clear] Registering id "925756616354168902" to internal chat input map
[DEBUG] ApplicationCommandRegistry[slowmode] Preparing to process 1 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[slowmode] Creating new guild chat input command with name "slowmode" for guild "921757111548018748"
[INFO] ApplicationCommandRegistry[slowmode] Successfully created chat input guild command "slowmode" with id "925756616798765116". You should add the id to the "idHints" property of the register method you used!
[DEBUG] ApplicationCommandRegistry[slowmode] Registering id "925756616798765116" to internal chat input map
[DEBUG] ApplicationCommandRegistry[eval] Preparing to process 1 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[eval] Creating new guild chat input command with name "eval" for guild "921757111548018748"
[INFO] ApplicationCommandRegistry[eval] Successfully created chat input guild command "eval" with id "925756616995921933". You should add the id to the "idHints" property of the register method you used!
[DEBUG] ApplicationCommandRegistry[eval] Registering id "925756616995921933" to internal chat input map
[DEBUG] ApplicationCommandRegistry[ping] Preparing to process 1 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[ping] Creating new guild chat input command with name "ping" for guild "921757111548018748"
[INFO] ApplicationCommandRegistry[ping] Successfully created chat input guild command "ping" with id "925756617885102130". You should add the id to the "idHints" property of the register method you used!
[DEBUG] ApplicationCommandRegistry[ping] Registering id "925756617885102130" to internal chat input map
[DEBUG] ApplicationCommandRegistry[weather] Preparing to process 1 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[weather] Creating new guild chat input command with name "weather" for guild "921757111548018748"
[INFO] ApplicationCommandRegistry[weather] Successfully created chat input guild command "weather" with id "925756618304520292". You should add the id to
the "idHints" property of the register method you used!
[DEBUG] ApplicationCommandRegistry[weather] Registering id "925756618304520292" to internal chat input map
[DEBUG] ApplicationCommandRegistry[register] Preparing to process 1 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[register] Creating new guild chat input command with name "register" for guild "921757111548018748"
[INFO] ApplicationCommandRegistry[register] Successfully created chat input guild command "register" with id "925756702748442694". You should add the id to the "idHints" property of the register method you used!
[DEBUG] ApplicationCommandRegistry[register] Registering id "925756702748442694" to internal chat input map
[INFO] ApplicationCommandRegistries: Took 20,889ms to initialize.
Ill keep looking into what may be causing the problem. Thanks @vladdy for all your help. Do you want me to add the issue to github aswell or are we fine with just managing it here
vladdy
vladdy3y ago
WHAT Why the heck is help not registering can you wrap the
registry.registerChatInputCommand({
name: this.name,
description: this.description,
type: 'CHAT_INPUT'
},
{
guildIds: ['921757111548018748'],
idHints: []
})
registry.registerChatInputCommand({
name: this.name,
description: this.description,
type: 'CHAT_INPUT'
},
{
guildIds: ['921757111548018748'],
idHints: []
})
into a try-catch?
lordflippers
lordflippersOP3y ago
will do @vladdy
public override registerApplicationCommands(registry: ApplicationCommandRegistry) {
try {
registry.registerChatInputCommand({
name: this.name,
description: this.description,
type: 'CHAT_INPUT'
},
{
guildIds: ['921757111548018748'],
idHints: []
})
} catch (e) {
this.container.logger.error(e);
} finally {
this.container.logger.info('registerChatInputCommand run');
}
}
public override registerApplicationCommands(registry: ApplicationCommandRegistry) {
try {
registry.registerChatInputCommand({
name: this.name,
description: this.description,
type: 'CHAT_INPUT'
},
{
guildIds: ['921757111548018748'],
idHints: []
})
} catch (e) {
this.container.logger.error(e);
} finally {
this.container.logger.info('registerChatInputCommand run');
}
}
logs:
[nodemon] starting `node .`
[INFO] registerChatInputCommand run
[INFO] registerChatInputCommand run
[INFO] ApplicationCommandRegistries: Initializing...
[INFO] Successfully logged in as TicketerTesting (891340733582299186)
[DEBUG] ApplicationCommandRegistry[help] Preparing to process 0 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[clear] Preparing to process 1 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[clear] Checking if guild chat input command "clear" is identical to command "925756616354168902"
[DEBUG] ApplicationCommandRegistry[clear] Registering id "925756616354168902" to internal chat input map
[DEBUG] ApplicationCommandRegistry[clear] Took 0ms to process differences
[DEBUG] ApplicationCommandRegistry[clear] Command "clear" is identical to command "clear" (925756616354168902)
[DEBUG] ApplicationCommandRegistry[slowmode] Preparing to process 1 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[slowmode] Checking if guild chat input command "slowmode" is identical to command "925756616798765116"
[DEBUG] ApplicationCommandRegistry[slowmode] Registering id "925756616798765116" to internal chat input map
[DEBUG] ApplicationCommandRegistry[slowmode] Took 0ms to process differences
[DEBUG] ApplicationCommandRegistry[slowmode] Command "slowmode" is identical to command "slowmode" (925756616798765116)
[DEBUG] ApplicationCommandRegistry[eval] Preparing to process 1 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[eval] Checking if guild chat input command "eval" is identical to command "925756616995921933"
[DEBUG] ApplicationCommandRegistry[eval] Registering id "925756616995921933" to internal chat input map
[DEBUG] ApplicationCommandRegistry[eval] Took 0ms to process differences
[DEBUG] ApplicationCommandRegistry[eval] Command "eval" is identical to command "eval" (925756616995921933)
[DEBUG] ApplicationCommandRegistry[ping] Preparing to process 1 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[ping] Checking if guild chat input command "ping" is identical to command "925756617885102130"
[DEBUG] ApplicationCommandRegistry[ping] Registering id "925756617885102130" to internal chat input map
[DEBUG] ApplicationCommandRegistry[ping] Took 0ms to process differences
[DEBUG] ApplicationCommandRegistry[ping] Command "ping" is identical to command "ping" (925756617885102130)
[DEBUG] ApplicationCommandRegistry[weather] Preparing to process 1 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[weather] Checking if guild chat input command "weather" is identical to command "925756618304520292"
[DEBUG] ApplicationCommandRegistry[weather] Registering id "925756618304520292" to internal chat input map
[DEBUG] ApplicationCommandRegistry[weather] Took 0ms to process differences
[DEBUG] ApplicationCommandRegistry[weather] Command "weather" is identical to command "weather" (925756618304520292)
[DEBUG] ApplicationCommandRegistry[register] Preparing to process 1 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[register] Checking if guild chat input command "register" is identical to command "925756702748442694"
[DEBUG]
[nodemon] starting `node .`
[INFO] registerChatInputCommand run
[INFO] registerChatInputCommand run
[INFO] ApplicationCommandRegistries: Initializing...
[INFO] Successfully logged in as TicketerTesting (891340733582299186)
[DEBUG] ApplicationCommandRegistry[help] Preparing to process 0 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[clear] Preparing to process 1 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[clear] Checking if guild chat input command "clear" is identical to command "925756616354168902"
[DEBUG] ApplicationCommandRegistry[clear] Registering id "925756616354168902" to internal chat input map
[DEBUG] ApplicationCommandRegistry[clear] Took 0ms to process differences
[DEBUG] ApplicationCommandRegistry[clear] Command "clear" is identical to command "clear" (925756616354168902)
[DEBUG] ApplicationCommandRegistry[slowmode] Preparing to process 1 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[slowmode] Checking if guild chat input command "slowmode" is identical to command "925756616798765116"
[DEBUG] ApplicationCommandRegistry[slowmode] Registering id "925756616798765116" to internal chat input map
[DEBUG] ApplicationCommandRegistry[slowmode] Took 0ms to process differences
[DEBUG] ApplicationCommandRegistry[slowmode] Command "slowmode" is identical to command "slowmode" (925756616798765116)
[DEBUG] ApplicationCommandRegistry[eval] Preparing to process 1 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[eval] Checking if guild chat input command "eval" is identical to command "925756616995921933"
[DEBUG] ApplicationCommandRegistry[eval] Registering id "925756616995921933" to internal chat input map
[DEBUG] ApplicationCommandRegistry[eval] Took 0ms to process differences
[DEBUG] ApplicationCommandRegistry[eval] Command "eval" is identical to command "eval" (925756616995921933)
[DEBUG] ApplicationCommandRegistry[ping] Preparing to process 1 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[ping] Checking if guild chat input command "ping" is identical to command "925756617885102130"
[DEBUG] ApplicationCommandRegistry[ping] Registering id "925756617885102130" to internal chat input map
[DEBUG] ApplicationCommandRegistry[ping] Took 0ms to process differences
[DEBUG] ApplicationCommandRegistry[ping] Command "ping" is identical to command "ping" (925756617885102130)
[DEBUG] ApplicationCommandRegistry[weather] Preparing to process 1 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[weather] Checking if guild chat input command "weather" is identical to command "925756618304520292"
[DEBUG] ApplicationCommandRegistry[weather] Registering id "925756618304520292" to internal chat input map
[DEBUG] ApplicationCommandRegistry[weather] Took 0ms to process differences
[DEBUG] ApplicationCommandRegistry[weather] Command "weather" is identical to command "weather" (925756618304520292)
[DEBUG] ApplicationCommandRegistry[register] Preparing to process 1 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[register] Checking if guild chat input command "register" is identical to command "925756702748442694"
[DEBUG]
ApplicationCommandRegistry[register] Registering id "925756702748442694" to internal chat input map
[DEBUG] ApplicationCommandRegistry[register] Took 0ms to process differences
[DEBUG] ApplicationCommandRegistry[register] Command "register" is identical to command "register" (925756702748442694)
[INFO] ApplicationCommandRegistries: Took 207ms to initialize.
ApplicationCommandRegistry[register] Registering id "925756702748442694" to internal chat input map
[DEBUG] ApplicationCommandRegistry[register] Took 0ms to process differences
[DEBUG] ApplicationCommandRegistry[register] Command "register" is identical to command "register" (925756702748442694)
[INFO] ApplicationCommandRegistries: Took 207ms to initialize.
vladdy
vladdy3y ago
wh.......................... whatttttttttt can you log if the method is called and from what command?
lordflippers
lordflippersOP3y ago
How should I do that?
vladdy
vladdy3y ago
at the top of the function call console.log('called registerApplicationCommands', this.name)
lordflippers
lordflippersOP3y ago
called registerApplicationCommands help
called registerApplicationCommands help
[INFO] ApplicationCommandRegistries: Initializing...
[INFO] Successfully logged in as TicketerTesting (891340733582299186)
[DEBUG] ApplicationCommandRegistry[help] Preparing to process 0 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[clear] Preparing to process 1 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[clear] Checking if guild chat input command "clear" is identical to command "925756616354168902"
[DEBUG] ApplicationCommandRegistry[clear] Registering id "925756616354168902" to internal chat input map
[DEBUG] ApplicationCommandRegistry[clear] Took 1ms to process differences
[DEBUG] ApplicationCommandRegistry[clear] Command "clear" is identical to command "clear" (925756616354168902)
[DEBUG] ApplicationCommandRegistry[slowmode] Preparing to process 1 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[slowmode] Checking if guild chat input command "slowmode" is identical to command "925756616798765116"
[DEBUG] ApplicationCommandRegistry[slowmode] Registering id "925756616798765116" to internal chat input map
[DEBUG] ApplicationCommandRegistry[slowmode] Took 0ms to process differences
[DEBUG] ApplicationCommandRegistry[slowmode] Command "slowmode" is identical to command "slowmode" (925756616798765116)
[DEBUG] ApplicationCommandRegistry[eval] Preparing to process 1 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[eval] Checking if guild chat input command "eval" is identical to command "925756616995921933"
[DEBUG] ApplicationCommandRegistry[eval] Registering id "925756616995921933" to internal chat input map
[DEBUG] ApplicationCommandRegistry[eval] Took 0ms to process differences
[DEBUG] ApplicationCommandRegistry[eval] Command "eval" is identical to command "eval" (925756616995921933)
[DEBUG] ApplicationCommandRegistry[ping] Preparing to process 1 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[ping] Checking if guild chat input command "ping" is identical to command "925756617885102130"
[DEBUG] ApplicationCommandRegistry[ping] Registering id "925756617885102130" to internal chat input map
[DEBUG] ApplicationCommandRegistry[ping] Took 0ms to process differences
[DEBUG] ApplicationCommandRegistry[ping] Command "ping" is identical to command "ping" (925756617885102130)
[DEBUG] ApplicationCommandRegistry[weather] Preparing to process 1 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[weather] Checking if guild chat input command "weather" is identical to command "925756618304520292"
[DEBUG] ApplicationCommandRegistry[weather] Registering id "925756618304520292" to internal chat input map
[DEBUG] ApplicationCommandRegistry[weather] Took 0ms to process differences
[DEBUG] ApplicationCommandRegistry[weather] Command "weather" is identical to command "weather" (925756618304520292)
[DEBUG] ApplicationCommandRegistry[register] Preparing to process 1 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[register] Checking if guild chat input command "register" is identical to command "925756702748442694"
[DEBUG] ApplicationCommandRegistry[register] Registering id "925756702748442694" to internal chat input map
[DEBUG] ApplicationCommandRegistry[register] Took 0ms to process differences
[DEBUG] ApplicationCommandRegistry[register] Command "register" is identical to command "register" (925756702748442694)
[INFO] ApplicationCommandRegistries: Took 227ms to initialize.
called registerApplicationCommands help
called registerApplicationCommands help
[INFO] ApplicationCommandRegistries: Initializing...
[INFO] Successfully logged in as TicketerTesting (891340733582299186)
[DEBUG] ApplicationCommandRegistry[help] Preparing to process 0 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[clear] Preparing to process 1 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[clear] Checking if guild chat input command "clear" is identical to command "925756616354168902"
[DEBUG] ApplicationCommandRegistry[clear] Registering id "925756616354168902" to internal chat input map
[DEBUG] ApplicationCommandRegistry[clear] Took 1ms to process differences
[DEBUG] ApplicationCommandRegistry[clear] Command "clear" is identical to command "clear" (925756616354168902)
[DEBUG] ApplicationCommandRegistry[slowmode] Preparing to process 1 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[slowmode] Checking if guild chat input command "slowmode" is identical to command "925756616798765116"
[DEBUG] ApplicationCommandRegistry[slowmode] Registering id "925756616798765116" to internal chat input map
[DEBUG] ApplicationCommandRegistry[slowmode] Took 0ms to process differences
[DEBUG] ApplicationCommandRegistry[slowmode] Command "slowmode" is identical to command "slowmode" (925756616798765116)
[DEBUG] ApplicationCommandRegistry[eval] Preparing to process 1 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[eval] Checking if guild chat input command "eval" is identical to command "925756616995921933"
[DEBUG] ApplicationCommandRegistry[eval] Registering id "925756616995921933" to internal chat input map
[DEBUG] ApplicationCommandRegistry[eval] Took 0ms to process differences
[DEBUG] ApplicationCommandRegistry[eval] Command "eval" is identical to command "eval" (925756616995921933)
[DEBUG] ApplicationCommandRegistry[ping] Preparing to process 1 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[ping] Checking if guild chat input command "ping" is identical to command "925756617885102130"
[DEBUG] ApplicationCommandRegistry[ping] Registering id "925756617885102130" to internal chat input map
[DEBUG] ApplicationCommandRegistry[ping] Took 0ms to process differences
[DEBUG] ApplicationCommandRegistry[ping] Command "ping" is identical to command "ping" (925756617885102130)
[DEBUG] ApplicationCommandRegistry[weather] Preparing to process 1 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[weather] Checking if guild chat input command "weather" is identical to command "925756618304520292"
[DEBUG] ApplicationCommandRegistry[weather] Registering id "925756618304520292" to internal chat input map
[DEBUG] ApplicationCommandRegistry[weather] Took 0ms to process differences
[DEBUG] ApplicationCommandRegistry[weather] Command "weather" is identical to command "weather" (925756618304520292)
[DEBUG] ApplicationCommandRegistry[register] Preparing to process 1 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[register] Checking if guild chat input command "register" is identical to command "925756702748442694"
[DEBUG] ApplicationCommandRegistry[register] Registering id "925756702748442694" to internal chat input map
[DEBUG] ApplicationCommandRegistry[register] Took 0ms to process differences
[DEBUG] ApplicationCommandRegistry[register] Command "register" is identical to command "register" (925756702748442694)
[INFO] ApplicationCommandRegistries: Took 227ms to initialize.
vladdy
vladdy3y ago
uhm why is it called twice
lordflippers
lordflippersOP3y ago
Hmm not sure. Ill add that to one of the other commands to see if it's called twice also im in #General 0 if we want to do this over voice
[nodemon] starting `node .`
called registerApplicationCommands help
called registerApplicationCommands help
called registerApplicationCommands clear
[INFO] ApplicationCommandRegistries: Initializing...
[INFO] Successfully logged in as TicketerTesting (891340733582299186)
[DEBUG] ApplicationCommandRegistry[help] Preparing to process 0 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[clear] Preparing to process 1 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[clear] Checking if guild chat input command "clear" is identical to command "925756616354168902"
[DEBUG] ApplicationCommandRegistry[clear] Registering id "925756616354168902" to internal chat input map
[DEBUG] ApplicationCommandRegistry[clear] Took 0ms to process differences
[DEBUG] ApplicationCommandRegistry[clear] Command "clear" is identical to command "clear" (925756616354168902)
[DEBUG] ApplicationCommandRegistry[slowmode] Preparing to process 1 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[slowmode] Checking if guild chat input command "slowmode" is identical to command "925756616798765116"
[DEBUG] ApplicationCommandRegistry[slowmode] Registering id "925756616798765116" to internal chat input map
[DEBUG] ApplicationCommandRegistry[slowmode] Took 0ms to process differences
[DEBUG] ApplicationCommandRegistry[slowmode] Command "slowmode" is identical to command "slowmode" (925756616798765116)
[DEBUG] ApplicationCommandRegistry[eval] Preparing to process 1 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[eval] Checking if guild chat input command "eval" is identical to command "925756616995921933"
[DEBUG] ApplicationCommandRegistry[eval] Registering id "925756616995921933" to internal chat input map
[DEBUG] ApplicationCommandRegistry[eval] Took 0ms to process differences
[DEBUG] ApplicationCommandRegistry[eval] Command "eval" is identical to command "eval" (925756616995921933)
[DEBUG] ApplicationCommandRegistry[ping] Preparing to process 1 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[ping] Checking if guild chat input command "ping" is identical to command "925756617885102130"
[DEBUG] ApplicationCommandRegistry[ping] Registering id "925756617885102130" to internal chat input map
[DEBUG] ApplicationCommandRegistry[ping] Took 0ms to process differences
[DEBUG] ApplicationCommandRegistry[ping] Command "ping" is identical to command "ping" (925756617885102130)
[DEBUG] ApplicationCommandRegistry[weather] Preparing to process 1 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[weather] Checking if guild chat input command "weather" is identical to command "925756618304520292"
[DEBUG] ApplicationCommandRegistry[weather] Registering id "925756618304520292" to internal chat input map
[DEBUG] ApplicationCommandRegistry[weather] Took 0ms to process differences
[DEBUG] ApplicationCommandRegistry[weather] Command "weather" is identical to command "weather" (925756618304520292)
[DEBUG] ApplicationCommandRegistry[register] Preparing to process 1 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[register] Checking if guild chat input command "register" is identical to command "925756702748442694"
[DEBUG] ApplicationCommandRegistry[register] Registering id "925756702748442694" to internal chat input map
[DEBUG] ApplicationCommandRegistry[register] Took 0ms to process differences
[DEBUG] ApplicationCommandRegistry[register] Command "register" is identical to command "register" (925756702748442694)
[INFO] ApplicationCommandRegistries: Took 220ms to initialize.
[nodemon] starting `node .`
called registerApplicationCommands help
called registerApplicationCommands help
called registerApplicationCommands clear
[INFO] ApplicationCommandRegistries: Initializing...
[INFO] Successfully logged in as TicketerTesting (891340733582299186)
[DEBUG] ApplicationCommandRegistry[help] Preparing to process 0 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[clear] Preparing to process 1 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[clear] Checking if guild chat input command "clear" is identical to command "925756616354168902"
[DEBUG] ApplicationCommandRegistry[clear] Registering id "925756616354168902" to internal chat input map
[DEBUG] ApplicationCommandRegistry[clear] Took 0ms to process differences
[DEBUG] ApplicationCommandRegistry[clear] Command "clear" is identical to command "clear" (925756616354168902)
[DEBUG] ApplicationCommandRegistry[slowmode] Preparing to process 1 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[slowmode] Checking if guild chat input command "slowmode" is identical to command "925756616798765116"
[DEBUG] ApplicationCommandRegistry[slowmode] Registering id "925756616798765116" to internal chat input map
[DEBUG] ApplicationCommandRegistry[slowmode] Took 0ms to process differences
[DEBUG] ApplicationCommandRegistry[slowmode] Command "slowmode" is identical to command "slowmode" (925756616798765116)
[DEBUG] ApplicationCommandRegistry[eval] Preparing to process 1 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[eval] Checking if guild chat input command "eval" is identical to command "925756616995921933"
[DEBUG] ApplicationCommandRegistry[eval] Registering id "925756616995921933" to internal chat input map
[DEBUG] ApplicationCommandRegistry[eval] Took 0ms to process differences
[DEBUG] ApplicationCommandRegistry[eval] Command "eval" is identical to command "eval" (925756616995921933)
[DEBUG] ApplicationCommandRegistry[ping] Preparing to process 1 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[ping] Checking if guild chat input command "ping" is identical to command "925756617885102130"
[DEBUG] ApplicationCommandRegistry[ping] Registering id "925756617885102130" to internal chat input map
[DEBUG] ApplicationCommandRegistry[ping] Took 0ms to process differences
[DEBUG] ApplicationCommandRegistry[ping] Command "ping" is identical to command "ping" (925756617885102130)
[DEBUG] ApplicationCommandRegistry[weather] Preparing to process 1 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[weather] Checking if guild chat input command "weather" is identical to command "925756618304520292"
[DEBUG] ApplicationCommandRegistry[weather] Registering id "925756618304520292" to internal chat input map
[DEBUG] ApplicationCommandRegistry[weather] Took 0ms to process differences
[DEBUG] ApplicationCommandRegistry[weather] Command "weather" is identical to command "weather" (925756618304520292)
[DEBUG] ApplicationCommandRegistry[register] Preparing to process 1 possible command registrations / updates...
[DEBUG] ApplicationCommandRegistry[register] Checking if guild chat input command "register" is identical to command "925756702748442694"
[DEBUG] ApplicationCommandRegistry[register] Registering id "925756702748442694" to internal chat input map
[DEBUG] ApplicationCommandRegistry[register] Took 0ms to process differences
[DEBUG] ApplicationCommandRegistry[register] Command "register" is identical to command "register" (925756702748442694)
[INFO] ApplicationCommandRegistries: Took 220ms to initialize.
vladdy
vladdy3y ago
oh my god you export your cmd twice thats why remove your index.ts file
lordflippers
lordflippersOP3y ago
Holy shit that was it
vladdy
vladdy3y ago
its a bug that i need to inspect
lordflippers
lordflippersOP3y ago
Interesting
vladdy
vladdy3y ago
because for some reason loading twice breaks shit
lordflippers
lordflippersOP3y ago
yeah, i was re-exporting it because I wanted to be able to access my commands custom functions from just the commands folder as sometimes they change categories and I didnt want to have to change other files that depend on it Thanks for all the help!
Want results from more Discord servers?
Add your server