discord.js-selfbot-v13/Document/SlashCommand.md
2022-11-18 19:23:12 +07:00

1.5 KiB

Slash command

Slash Command (no options)

Demo

image

Code

await message.channel.sendSlash('botid', 'aiko')

Slash Command + Sub option (group)

Demo

image

Code test

await message.channel.sendSlash('450323683840491530', 'animal chat', 'bye')

Slash Command with Attachment

Demo

image

Code test

const { MessageAttachment } = require('discord.js-selfbot-v13')
const fs = require('fs')
const a = new MessageAttachment(fs.readFileSync('./wallpaper.jpg') , 'test.jpg') 
await message.channel.sendSlash('718642000898818048', 'sauce', a)

Result

image

Events