Ben
Ben
SIASapphire - Imagine a Framework
Created by Tasemu on 3/7/2025 in #sapphire-support
Failed to overwrite global application commands: Command name is invalid
Oh I didn’t know that. I’m not sure then
13 replies
SIASapphire - Imagine a Framework
Created by Tasemu on 3/7/2025 in #sapphire-support
Failed to overwrite global application commands: Command name is invalid
A commands name can only have lowercase letters. You should probably set name to something other than just this.name since that will be RecruterChannel
13 replies
SIASapphire - Imagine a Framework
Created by Tasemu on 3/7/2025 in #sapphire-support
Failed to overwrite global application commands: Command name is invalid
What’s the name of the file?
13 replies
SIASapphire - Imagine a Framework
Created by L V N A C Y on 11/6/2024 in #sapphire-support
how to pass variables from one interaction into the next?
You can store the information in the buttons custom id. I'm pretty sure the recently released string store package can help with getting lots of info into an out of button ids
52 replies
SIASapphire - Imagine a Framework
Created by TechSquidTV on 4/7/2024 in #sapphire-support
Create a catch-all command to respond to any message?
There's also UnknownMessageCommand which is "Emitted when the name of a sent message command does not match any loaded commands." and actually might be what you want
15 replies
SIASapphire - Imagine a Framework
Created by TechSquidTV on 4/7/2024 in #sapphire-support
Create a catch-all command to respond to any message?
I also just learned that all the events are listed in the docs here so you don't need to go digging through the source code to find them like I did.
15 replies
SIASapphire - Imagine a Framework
Created by TechSquidTV on 4/7/2024 in #sapphire-support
Create a catch-all command to respond to any message?
The UnknownMessageCommandName event is "Emitted when a message starts with a valid prefix but does not include a command name." TSDoc in code Code that emits UnknownMessageCommandName
15 replies
SIASapphire - Imagine a Framework
Created by -_-العربي الفصيح-_- on 3/18/2024 in #sapphire-support
Slash Command Permissions
Its no problem
40 replies
SIASapphire - Imagine a Framework
Created by -_-العربي الفصيح-_- on 3/18/2024 in #sapphire-support
Slash Command Permissions
Yeah it should. Does the user have the Use Application Commands permission?
40 replies
SIASapphire - Imagine a Framework
Created by -_-العربي الفصيح-_- on 3/18/2024 in #sapphire-support
Slash Command Permissions
Did you add the bot with the application commands scope?
40 replies
SIASapphire - Imagine a Framework
Created by -_-العربي الفصيح-_- on 3/17/2024 in #sapphire-support
commands
For the reference of others, the file layout should look like this.
src
│ ...other stuff

├───commands
│ ColorCommand.ts
│ GenderCommand.ts
│ ...other stuff

└───lib
│ BaseSelfRoleCommand.ts
src
│ ...other stuff

├───commands
│ ColorCommand.ts
│ GenderCommand.ts
│ ...other stuff

└───lib
│ BaseSelfRoleCommand.ts
24 replies
SIASapphire - Imagine a Framework
Created by -_-العربي الفصيح-_- on 3/17/2024 in #sapphire-support
commands
move BaseSelfRoleCommand out of the commands folder
24 replies
SIASapphire - Imagine a Framework
Created by -_-العربي الفصيح-_- on 3/17/2024 in #sapphire-support
commands
That 100% should work as I am doing the same thing with my bot. Can you send your file stucture
24 replies
SIASapphire - Imagine a Framework
Created by Jarvo on 1/19/2024 in #sapphire-support
InteractionHandler Buttons
10 replies
SIASapphire - Imagine a Framework
Created by Jarvo on 1/19/2024 in #sapphire-support
InteractionHandler Buttons
If memory serves, you can call interaction.deferUpdate() and then interaction.editReply() to update the message.
10 replies
SIASapphire - Imagine a Framework
Created by Jarvo on 1/19/2024 in #sapphire-support
InteractionHandler Buttons
You cant call editReply() on an interaction if you haven't already called reply() ordefer()
10 replies
SIASapphire - Imagine a Framework
Created by -Carlos👑 on 1/16/2024 in #sapphire-support
Get command used with a message object
Fair enough I guess. I meant that if the command were a chat interaction command, users would send an interaction instead of a message to trigger the command. Interactions don't trigger message create listeners which I assumed your auto mod use.
13 replies
SIASapphire - Imagine a Framework
Created by -Carlos👑 on 1/16/2024 in #sapphire-support
Get command used with a message object
Have you considered making the command a chat interaction command instead of a message command? There's no need to filter out messages in your listener if users don't send messages with a command.
13 replies
SIASapphire - Imagine a Framework
Created by ender on 11/12/2023 in #sapphire-support
Check if command is a slash command
It doesn't ring a bell
10 replies
SIASapphire - Imagine a Framework
Created by ender on 11/12/2023 in #sapphire-support
Check if command is a slash command
Our mutuals show only this server and the djs one
10 replies