sapphire-support
discordjs-support
old-sapphire-support
old-discordjs-support
old-application-commands-and-interactions
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
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
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?
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?
Autocomplete within command class
@sapphire/plugin-subcommands
so wondering if theres something like that so I could just specify autocomplete:
besides chatInputRun:
or something...Paginated message support
await paginatedMessage.run(msg, msg.author);
await paginatedMessage.run(msg, msg.author);
Subcommand wont get registered
TypeError: Cannot read properties of undefined (reading 'parseConstructorPreConditionsRunIn')
...Permission bits to Human Readable text
help
command which extracts command names via container stores & when user selects the command name, the help
command then extracts detailedDescription
of selected command to show. A nice addition would be to show the permissions required....const { PermissionsBitField } = await import('discord.js');
new PermissionsBitField(the bits here).toArray()
const { PermissionsBitField } = await import('discord.js');
new PermissionsBitField(the bits here).toArray()