-_-العربي الفصيح-_-
-_-العربي الفصيح-_-
SIASapphire - Imagine a framework
Created by -_-العربي الفصيح-_- on 3/18/2024 in #sapphire-support
Slash Command Permissions
How to make a slash command accessible by any one ?!
40 replies
SIASapphire - Imagine a framework
Created by -_-العربي الفصيح-_- on 3/17/2024 in #sapphire-support
Slash Command : How to set the type channel option to voice only
public override registerApplicationCommands(registry: Command.Registry) {

registry.registerChatInputCommand((builder) =>
builder
.setName(this.name)
.setDescription(this.description)
.addStringOption(option =>
option.setName('music')
.setDescription(`The music name to play`)
.setRequired(true)
)
.addChannelOption(option =>
option.setName('channel')
.setDescription(`The voice channel where to play the music`)
.setRequired(true)

)
);
}
public override registerApplicationCommands(registry: Command.Registry) {

registry.registerChatInputCommand((builder) =>
builder
.setName(this.name)
.setDescription(this.description)
.addStringOption(option =>
option.setName('music')
.setDescription(`The music name to play`)
.setRequired(true)
)
.addChannelOption(option =>
option.setName('channel')
.setDescription(`The voice channel where to play the music`)
.setRequired(true)

)
);
}
10 replies
SIASapphire - Imagine a framework
Created by -_-العربي الفصيح-_- on 3/17/2024 in #sapphire-support
commands
Is there any way to ignore a command inside the commands folder ?! i have an abstract class that extend Command ! but i do not want to set the abstract class as command , only the child classes that extends the abstract class
24 replies
SIASapphire - Imagine a framework
Created by -_-العربي الفصيح-_- on 2/28/2024 in #sapphire-support
Hello ,I need some Help about listeners in sapphire framework
No description
12 replies