ZachHandley
ZachHandley
Explore posts from servers
SIASapphire - Imagine a framework
Created by ZachHandley on 3/19/2024 in #sapphire-support
Just curious, can I declare a map of string to Class on container as a type?
No description
6 replies
SIASapphire - Imagine a framework
Created by ZachHandley on 3/15/2024 in #sapphire-support
Decorators Message Context?
The decorators don't really say, can I use them on top of an interaction? If not, what's the recommended flow to use the decorators e.g. RequiresGuildContext() on things like a command rather than a subcommand?
89 replies
SIASapphire - Imagine a framework
Created by ZachHandley on 3/15/2024 in #sapphire-support
Scope of Command Classes?
Hi just curious, what's the scope of command classes? Is a class created each time you run the command, or
export class ConfigCommand extends Command {
supportChannel: Channel | null = null;
settingsEmbed: EmbedBuilder | null = null;
permittedRoles: string[] = [];
export class ConfigCommand extends Command {
supportChannel: Channel | null = null;
settingsEmbed: EmbedBuilder | null = null;
permittedRoles: string[] = [];
when a guild user runs this command, is the support channel per-command instance or per bot?
78 replies