sapphire-support
discordjs-support
old-sapphire-support
old-discordjs-support
old-application-commands-and-interactions
Can't use Sapphire CLI
yarn global bin to your PATH
pollSync error
Production mode?
DEVELOPMENT MODE.
.env doesn't allow setting NODE_ENV and it doesn't work based on the name of the .env file. I've also tried using MODE per a Stack Overflow thread I found but that didn't work either. Is there not a solution where I just copy the built files over and change a setting somewhere?...Running commands manually
``ts
// or, if in a command class, just use this.store`
const commands = container.stores.get('commands');...Regarding containers
setup.ts is that it is called before you can new SapphireClient, which happens automatically through line 1 at https://github.com/sapphiredev/examples/blob/main/examples/with-typescript-starter/src/index.ts, by calling just import './lib/setup.ts' instead of something like import { x } from './lib/setup.ts' that file i...Custom Client Event
client.emit('someEvent', data)
then can I use framework listeners for that events ? like create someEvent.ts file so that I can use or I need to do client.on('someEvent', handler) for it ?...keyof ClientguildMemberUpdate event
once: true, otherwise it gets de-registered after a single call.
Also make sure you have the proper intent in your client options...Creating a custom UserError
throw new UserError and have it go to my custom function?...Sharding via DJS and Sapphire
SapphireClient instead of Client.Hide the page selector with paginated messages?
Subcommand issues
Trouble with telling typescript the return type of fetch when using @sapphire/result
fetch function. The fetch is wrapped in Result.fromAsync(), and I wanted to do Result.fromAsync<Promise<APIResponse>> since I know what the API will return. The problem is, when doing Result.fromAsync<Promise<APIResponse>> Typescript says that Response is missing certain properties that I know the API will return.
How would I tell Typescript I know that the fetch will return this?...How to check if a number (the permission integer) has the manage server permission?
messageCreate not working with DMs
messageCreate event to run with DMs. When I send a server message it all works well, but in DMs it simply refuses to work.
listeners/messageCreate.ts:
```ts
import { ApplyOptions } from '@sapphire/decorators';...Setting Nicknames
Sapphire not initializing correctly inside of Docker
'Can't find the template.' on a template listed in the docs
sapphire generate buttoninteractionhandler customRole I get the error Can't find the template., however, https://www.sapphirejs.dev/docs/Guide/CLI/generating-components lists buttoninteractionhandler as a component.@sapphire/cli making sure sapphire --version returns 1.6.1.Issue when running mutiple bot instances on the same redis db with the scheduler plugin


