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
vladdy
vladdy871d 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
lordflippers871d 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
vladdy871d ago
that makes no sense it should be registering in the registry wth
lordflippers
lordflippers871d 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
vladdy871d 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
lordflippers871d 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
vladdy871d ago
wh.......................... whatttttttttt can you log if the method is called and from what command?
lordflippers
lordflippers871d ago
How should I do that?
vladdy
vladdy871d ago
at the top of the function call console.log('called registerApplicationCommands', this.name)
lordflippers
lordflippers871d 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
vladdy871d ago
uhm why is it called twice
lordflippers
lordflippers871d 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
vladdy871d ago
oh my god you export your cmd twice thats why remove your index.ts file
lordflippers
lordflippers871d ago
Holy shit that was it
vladdy
vladdy871d ago
its a bug that i need to inspect
lordflippers
lordflippers871d ago
Interesting
vladdy
vladdy871d ago
because for some reason loading twice breaks shit
lordflippers
lordflippers871d 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
More Posts
yesAre you trying to add a role to the member or..?Notion document feedback, issues, questions and answersHello @everyone! Now, before you bring out the pitchforks and the <:Ping:504396173935771668>, <:cockPoll Discussion & Answers1️⃣ → *Interaction Handler* 2️⃣ → *In the command with the same name / id* 3️⃣ → *Other (please explApplication Command Registry Interface v1@here Your feedback is required again! We're inching closer and closer to having application commandHow should you, the end user, define commands?⚠️ **How should you define what application commands are for what command classes, and how should thPreconditions with missing handlers! What do?**Preconditions**: What should happen with preconditions (global or not) that need to run on a messaContext Menus vs Application Commands - separate or not?**Question time** ❓ Context menus.. they exist. They're like used once a blue century. How should Interaction Handlers after usageWant to give interaction handlers a shot **now**? Well, you can! Just run the command below and givInteraction Handlers!!Hello peeps! I know, I know, allllll of you (myself included) are just basically begging me for appInitial Commit ThoughtsI've pushed the initial commit for interaction handlers: heavily wip, totally untested and raw (justThe statefulness or statelessness of Interactions1. Most likely, but it would be a nice addition if I was able to have non-state "callbacks" as mentiInteraction handlers in the command instead of globallyHonestly. I would much rather add interactions from my command and from there tell to continue in (fReply sess 2**1.** Yes. This also follows the design pattern that we more-or-less employ already for Sapphire. Wdont feel like creating a review on GitHub...PR is up: https://github.com/sapphiredev/utilities/pull/152 CC @kyra 🩵🩷🤍🩷🩵 @vladdy