zeyad
zeyad
Explore posts from servers
SIASapphire - Imagine a framework
Created by zeyad on 3/31/2024 in #sapphire-support
Issue with inviteCreate event
Hello. I have an issue with the inviteCreate event where it won't fire unless the invite created has some sort of uses limit. is this intended?
3 replies
SIASapphire - Imagine a framework
Created by zeyad on 3/30/2024 in #sapphire-support
Ready event does not run
import { Listener } from "@sapphire/framework";
import { Client } from "discord.js";

export class ReadyListener extends Listener {
public constructor(
context: Listener.LoaderContext,
options: Listener.Options
) {
super(context, {
...options,
once: true,
event: "ready",
});
}
public run(client: Client) {
const { username, id } = client.user!;
this.container.logger.info(`Successfully logged in as ${username} (${id})`);
}
}
import { Listener } from "@sapphire/framework";
import { Client } from "discord.js";

export class ReadyListener extends Listener {
public constructor(
context: Listener.LoaderContext,
options: Listener.Options
) {
super(context, {
...options,
once: true,
event: "ready",
});
}
public run(client: Client) {
const { username, id } = client.user!;
this.container.logger.info(`Successfully logged in as ${username} (${id})`);
}
}
17 replies