discord.js-selfbot-v13/Document/SlashCommand.md
2022-06-16 01:31:18 +07:00

1.6 KiB

Slash command demo

  • Unsupport Autocomplete feature (maybe)
  • Unused guild.searchInteraction() (Use only if not working properly)

Slash Command (no options)

Demo

image

vietnamese .-.

Code test

await message.channel.sendSlash('botid', 'aiko')
// Return nonce (view document)

Result

image

Slash Command + Sub option (group)

Demo

image

Code test

await message.channel.sendSlash('450323683840491530', 'animal', 'chat', 'bye')
// Return nonce (view document)

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.channel.sendSlash('718642000898818048', 'sauce', a)
// Return nonce (view document)

Result

image

Events (Update soon)