Skip to content

SlashCommand.data

github-actions[bot] edited this page Sep 30, 2024 · 2 revisions

function data for the slash command that's fired off when it is ran
the data is always the last argument given

type: Function

commands.create("example1", "example desc", (ctx) => {
    // do stuff
});


commands.create({ name: "example2", desc: "example desc" }, (ctx) => {
    // do stuff
});


🛈 Client

🛈 AddonService

🛈 AttachmentService

🛈 ChannelService

🛈 CommandService

🛈 ComponentService

🛈 ErrorService

🛈 EventService

🛈 ExpressionService

🛈 GuildService

🛈 LogService

🛈 MessageService

🛈 PermissionService

🛈 RoleService

🛈 StorageService

🛈 TypeService

🛈 UserService

🛈 UtilService

🛈 VoiceService


Clone this wiki locally