discord.js-selfbot-v13/Document/SlashCommand.md
2022-06-13 18:48:43 +07:00

1.5 KiB

Slash Command (no options)

Demo

image

vietnamese .-.

Code test

await message.guild.searchInteraction({  query: 'aiko', botId: '.-.' })
message.channel.sendSlash('.-.', 'aiko')

Result

image

Slash Command + Sub option (group)

Demo

image

Code test

await message.guild.searchInteraction({  query: 'animal', botId: '450323683840491530' })
message.channel.sendSlash('450323683840491530', 'animal', 'chat', 'bye')

Result

image

Slash Command with Attachment (must use MessageAttachment)

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.guild.searchInteraction({  query: 'sauce', botId: '718642000898818048' })
message.channel.sendSlash('718642000898818048', 'sauce', a)

Result

image