sapphire-support
discordjs-support
old-sapphire-support
old-discordjs-support
old-application-commands-and-interactions
Multiple Clients on one file/instance
new Client()
)?
I tried a basic implementation and the commands we're spammed after running one once (see screenshot)...container
which exists as a singleton (only one instance).
I don't know why you want to do this, but worker threads or forks are your only way....How to present Slashcommands?
Interaction Handlers
interaction-handlers
directory doesn't seem to be detected.
- ├─ Loaded 0 interaction-handlers.
...bot won't get on and connect to discord.
"yarn watch:start"
- "watch:start": "tsc-watch --onSuccess \"node ./dist/index.js\""
it just won't turn on....How Do I Make a Project in my current Directory?
workspaces/DashMate
not like workspaces/DashMate/${ProjName}
Bot wont go online
yarn dev
I get this problemGuildDelete Event somehow gets triggered when I restart my Bot
TypeError: Class extends value undefined is not a constructor or null
THREAD_CREATE event Listener run method arguments
ws
event also receives only ONE argument which is that APIThreadChannel
, there is no second argument NewlyCreated
. That gets inserted by DiscordJS....await args.pick("member");
args.pick('member', { context: { performFuzzySearch: false }})
Command info command issue
Running in production
speakerName translation in FFXIVIpcChat
Clearing registered slash commands
ReferenceError: [ENV] BOT_OWNER_IDS - The key must be an array, but is empty or undefined.
@skyra/env-utilities
and when I start up my bot, I get the error reported in the title of this post. I cannot figure out what I am missing. I have a .env.local
file in my src
directory.
It is erroring when it gets to export const OWNERS = envParseArray('BOT_OWNER_IDS');
in my src/lib/constants.ts
file.
This is the contents of my src/lib/setup.ts
file:...setup
. Calling constants means that envParseArray
gets executed, but because setup hasn't ran yet you get the error that you do.
So the fix is to split your constants file in stuff that is needed for env, and stuff that isn't needed. That way you can safely import the former in setup....How can I turn a joinedTimestamp into this Discord Timestamp
How to use `@sapphire/shapeshift ` dateValid & stringRegex
YYYY-MM-DD
. I want to perform validation on this and throw an error if it is not in this format or not a valid date. I was looking at the documenation, but I was hoping to see a code example to help explain the usage. I appreciate the explanation and help.s.string.regex(/\d{4}-\d{2}-\d{2}/)
s.string.regex(/\d{4}-\d{2}-\d{2}/)
Access extended sapphire client
container.client
, and you need to add module augmentation to add the properties to the Client
class from discord.js
```ts
declare module 'discord.js' {
interface Client {
myCustomProperty: any...Version mismatch between Sapphire and dapi-types
!isStageChannel (...)
Whats the syntax to require Permission X AND Y OR Z when using requiredUserPermissions
requiredUserPermissions
. Its an array so Im not sure