sapphire-support
discordjs-support
old-sapphire-support
old-discordjs-support
old-application-commands-and-interactions
Is 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
![No description](https://cdn.answeroverflow.com/1178739035569651773/image.png)
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({})
};
Bot freezing after evaluate `.client`
eval this.container.client
- with which options
option?
- define "hang"...will using super while having @ApplyOptions work
![No description](https://cdn.answeroverflow.com/1175865146036453486/image.png)
Command.LoaderContext does not exist
Command.Context
has been deprecated, but Command.LoaderContext
does not exist.
Listener.LoaderContext
does exist however.
"@sapphire/framework": "^4.8.2",...Command
is from @kaname-png/plugin-subcommands-advanced (which probably hasn't been updated yet), not sapphirefound differences for command when i havent made any changes
![No description](https://cdn.answeroverflow.com/1175555875335835718/image.png)
Can't create new listener
target
wasn't set so it defaults to ES3 which is ancient JS that isn't supported and doesn't supported classes...@sapphire/shapeshift validate env library
znv
but using @sapphire/shapeshift. Was thinking of doing that so I keep my libraries within sapphire if possibleExtending the container wont work?
![No description](https://cdn.answeroverflow.com/1175112333283049472/image.png)
Listeners and Handlers not registering interactions/events
Deployment failing
InteractionHandler.LoaderContext
instead of PieceContext
.
Likewise for commands it's Command.LoaderContext
, listeners Listener.LoaderContext
, and so on....Log File
Pre-built binaries not installable for @sapphire/[email protected] & build failing
│ node-pre-gyp http GET https://github.com/sapphiredev/type/releases/download/v2.4.0/type-v2.4.0-node-v108-darwin-arm64-unknown-unknown.tar.gz
the build step seems to not be able to resolve the last two parts of their machine information...Any idea why is this happening?