Sapphire - Imagine a framework
Welcome to the Sapphire Discord server! The next-gen object-oriented Discord.js bot framework can be found here.
Join ServerSapphire - Imagine a framework
Welcome to the Sapphire Discord server! The next-gen object-oriented Discord.js bot framework can be found here.
Join ServerCommunity questions
Channels
Hyperfire - I'm having an issue trying to make a c...
Lioness100 - Does `LazyPaginatedMessage` automatic...
LazyPaginatedMessage
automatically cache embed pages or is that something the user has to do themselfBlueSky - Just for verification, we are allowed to...
Feralheart - Is the `command.enabled` works togeth...
command.enabled
works together with slashies?Frozn - whenever i try to run my bot i keep gettin...
jeelzzz - is there any way to export multiple thi...
command
and it'll let me export other stuff without breakingMcDefault - Hello y'all Im trying to follow the c...
isMessageInstance(msg)
Type not assignablehttps://www.sapphirejs.dev/docs/Guide/getting-started/creating-a-basic-app-command
```js
import { isMessageInstance } from '@sapphire/discord.js-utilities';
import { ChatInputCommand, Command } from "@sapphire/framework";
export class PingCommand extends Command {
public constructor(context: Command.Context, options: Command.Options) {...
WhacK - I upgraded my existing sapphire bot to typ...
Log
```
8:10:50 PM - Found 0 errors. Watching for file changes.
2022-11-20 20:10:51 - INFO - Logging in
2022-11-20 20:10:52 - INFO - logged in
2022-11-20 20:10:52 - INFO - Connected to MongoDB
2022-11-20 20:10:52 - INFO - ApplicationCommandRegistries: Initializing...
1.0.0
[+] Gateway
</> DEVELOPMENT MODE
2022-11-...
Ararou - Is this smth fixable? It's never done thi...
ShirayukiHaruka - **[Sapphire Logging]**Hello! I'...
Hello! I've been using Sapphire for a while now, and wondering if there is a way to use custom logger instead sapphire's default one.
Context: I've configured
winston
as my logger and to make my log consistent, I'd like to use my logger instance to log sapphire's one.I've read the source code and kinda have some speculation.
- SapphireClient uses
ClientLoggerOptions
to define the logger
field when constructing the client.-
ClientLoggerOptions
contains level
and...Ben855 - I can't seem to get slash subcommands wor...
RVX - new to coding here. (very new) how do i un...
how do i unregister a command?
looks like registering a command and then changing the .setName make it reregister and them creates a whole other command.
Slinky - Hello, I just started using the framework...
this.container.stores.get('preconditions').get('Cooldown').buckets.get('command').set(userId, 0);
but buckets no longer seems accessible, if someone could point me in the right direction, that'd be fantastic. Thanks. 🙂Hyperfire - How would i ago about adding custom fi...
pochiko - Hello! does anyone kno whow to fix this ...
``Function.prototype.apply was called on undefined, which is a undefined and not a function
my code is here:
const fs = require('fs');
module.exports = (client) => {
client.handleEvents = async () => {
const eventFolders = fs.readdirSync(
./src/events);
for (const folder of eventFolders) {
const eventFiles = fs
.readdirSync(
./src/events/${f...sam - ```srcconfig.ts737 - error TS2345 Argum...
src/config.ts:7:37 - error TS2345: Argument of type 'string' is not assignable to parameter of type 'never'.
Anyone seen this before?