sapphire-support
discordjs-support
old-sapphire-support
old-discordjs-support
old-application-commands-and-interactions
Command not being registered
Property does not exist on type 'Container'
Sapphire eslint-config
Translate runIn error message
runIn pre condition do not return the identifier of precondition that failed, is there a way to translate the message of the error or should I just don't use the runIn: CommandOptionsRunTypeEnum.GuildAny and only use preconditions: ['GuildOnly']?Type issues with .addChoices()
addChoices has a spread syntax for the array type, so remove the square brackets and it will work.Sapphire registering applications bug
@sapphire/framework@pr-701Error when creating a modal
createMessageComponentCollector() instead of doing it all in the button interaction handlerLinter errors in command options after upgrade
augments
Tooling question
[ERROR] Encountered error on event listener "moderationLog"
Fetch reply from a command to button interaction
x command so i can edit the reply in y button interactionIs there a way to use Sapphire to reset previously registered slash commands?
Arguments
channel built-in argument will detect any channel? (Including Text Channels, Voice Channels, Threads, etc)?Decorators issue
"target": "ES2016" in tsconfig.json
Paginination limitation when not using select menus
(node:1484241) [PAGINATED_MESSAGE_EXCEEDED_MAXIMUM_AMOUNT_OF_PAGES] PaginatedMessageExceededMessagePageAmount: Maximum amount of pages exceeded for PaginatedMessage. Please check your instance of PaginatedMessage and ensure that you do not exceed 25 pages total. If you do need more than 25 pages you can extend the class and overwrite the actions in the constructor.and this is my current code giving the error: ```ts...
Run bot without building to js and use ts-node or other alternatives instead.
npm run build && npm run start
npm run build && npm run start
tsc-watch is good.
Or you can remove typescript & code directly in js
Or you can use bun runtime to start your typescript based bot directly (you will need to refactor your code so that it runs on bun)...Unregister Old Application Sub Commands from the subcommands plugin
Application Commands are not being registered when bot restarts.
process.exit() and then Pterodactyl starts it back up), my application commands are not re-registered. There is no error in console indicating an issue and restarting forcefully (using Restart button in Pterodactyl) does not cause the issue to occur. Would anyone have some pointers for me to help figure out why this is hap...Cannot set properties of undefined when extending `container`
entities that holds two properties which would be users and guild of class Entity. Now entities doesn't have any type at all since it'll just be an object to hold users and guild in one. But whenever I run my bot I receive Cannot set properties of undefined (setting 'users')
Here's my augments:
```ts
declare module '@sapphire/pieces' {....entities, like this:container.entities = {
users: new Entity({}),
guilds: new Entity({})
};
container.entities = {
users: new Entity({}),
guilds: new Entity({})
};