discord.js-selfbot-v13/Document/SlashCommand.md
2024-01-14 12:33:11 +07:00

1.0 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