Ben
Ben
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
46 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
SIASapphire - Imagine a framework
Created by ender on 11/12/2023 in #sapphire-support
Check if command is a slash command
10 replies
SIASapphire - Imagine a framework
Created by Oreo ™ on 11/11/2023 in #sapphire-support
Dyno like help command
I'm not sure if having a chat input command that extends the subcommand class but has no subcommands will play nicely with the subcommands plugin but you can give it a shot
8 replies
SIASapphire - Imagine a framework
Created by Oreo ™ on 11/11/2023 in #sapphire-support
Dyno like help command
If you're only using message commands, you could use the subcommands plugin to create a class that extends subcommand and adds a help subcommand which displays the detailed descrition. You would then have all your other commands extend that class to inherit the help subcommand.
8 replies