aiko-chan-ai / discord.js-selfbot-v13

An unofficial discord.js fork for creating selfbots
https://discordjs-self-v13.netlify.app
GNU General Public License v3.0
774 stars 164 forks source link

Cannot do Slash commands in a user DMS but the same script works on guild #1198

Closed tr7ma closed 3 months ago

tr7ma commented 3 months ago

Which package has the bugs?

The core library

Issue description

  1. slash command
  2. try to trigger one in a user channel
  3. shows the error but works in a guild channel

Code sample

const channel = await client.channels.fetch(process.env.BUMP_CHANNEL)

async function slash() {
    await channel.sendSlash('botid', 'command')
}

traceback :

optionsMaxdepth = command.option 

Cannot read the properties of undefined (reading 'options') at Dm channel.sendSlash

Package version

3.1.4

Node.js version

v18.17.1

Operating system

Windows

Priority this issue should have

Medium (should be fixed soon)

Checklist

Additional Information

kinda annoying ngl

aiko-chan-ai commented 3 months ago

okie