sapphire-support
discordjs-support
old-sapphire-support
old-discordjs-support
old-application-commands-and-interactions
Remove old commands
Errors when extending @sapphire/ts-config
my sapphire bot not picking up any commands, i use message commands
@sapphire/shapeshift ExpectedConstraintError
...choices
to #addChoices
```ts
interface ShopItem {...Command registering although it does not exist
dist
or whatever folder you have set for compiled output codeCustom Command Cooldown Message
There is a cooldown in effect for this chat input command. It'll be available at 2023-04-19T04:26:08.886Z.
Is there any good way to turn this message into something more readable and convenient, such as: This command cannot be used for *X* hours / *Y* minutes.
Is there a way to extract the cooldown for the command itself? So I can get a date or time object out of it?...typescript aka tsc not working solved
How to register commands without loadMessageCommandListeners=true?
More information for CombinedPropertyErrors on shapeshift
Using plugin-api to link accounts
plugin-subcommands "No subcommand was matched"
Multiple context commands in a single file
Type-safety for guild-only slash commands
ChatInputCommandInteraction#guildId
is nullable, but is there some sort of way to assert it's going to be run in a guild? I'm setting .setDMPermission(false)
on the builder, do I need to .guildId!
everywhere or is there a better method?if (interaction.inGuild()) {
// now it's in guild and you dont need !
}
if (interaction.inGuild()) {
// now it's in guild and you dont need !
}
Passing data from one handler to the other
Absolutely nothing happens with basic text command
main
is set to dist/index.js
and I'm using TS if that affects anything.@sapphire/framework
are you using?
- What's your file/folder structure?
- Did you use the CLI to generate your bot?
- What's your "main" property in package.json
- Are you using TypeScript? And if so, how are you compiling and running your code? That is to say, what are your build and startup scripts?...Slash command and Unknown interaction
rawError: { message: 'Unknown interaction', code: 10062 }
whenever the user tries to click on a button of any of both messages.
For me looks like somehow the ActionRow is not correctly attached to the Embed (doesn't make much sense since I create the actionRow inside chatInputRun method every time, so it should be correctly scoped).
I can provide more information if needed, can someone help me? 🙂 ❤️...- <Channel>.createMessageComponentCollector(…)
+ <Message>.createMessageComponentCollector(…)
- <Channel>.createMessageComponentCollector(…)
+ <Message>.createMessageComponentCollector(…)