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
751 stars 160 forks source link

Slash Command Is Not Working #878

Closed CYCNO closed 10 months ago

CYCNO commented 11 months ago

Which package has the bugs?

The core library

Issue description

Slash command is not working... Not in any channel and yes i gave all the permission to user to access the channel but it is not giving error in the console as well as the code is not working.

Code sample

const { Client } = require('discord.js-selfbot-v13')
const client = new Client()

token = 'TOKEN'

client.on('ready', async () => {
    console.log(`Logged in as ${client.user.tag}!`)

    const channel = await client.channels.fetch('CHANNEL_ID')

    async function bump() {
        await channel.sendSlash('302050872383242240', 'bump')
        console.count('Bumped!')
    }

    function loop() {
        var randomNum = Math.round(Math.random() * (9000000 - 7200000 + 1)) + 7200000
        setTimeout(function () {
            bump()
            loop()
        }, randomNum)
    }

    bump()
    loop()
})

client.login(token)

Package version

latest

Node.js version

18.0.6

Operating system

Linux

Priority this issue should have

Medium (should be fixed soon)

Checklist

Additional Information

No response

Majoramari commented 10 months ago

I can confirm its not working with me too

Example:

import { Client, Message } from "discord.js-selfbot-v13";

const client = new Client();

client.on("messageCreate", async (message: Message) => {
  if (message.author.bot) return;

  if (message.content === "!test")
    await message.channel.sendSlash("SLASH_BOT_ID", "COMMAND_NAME");
});

client.login("BOT_TOKEN");
TheDevYellowy commented 10 months ago

Are you guys using replit?

CYCNO commented 10 months ago

Are you guys using replit?

yes, is there any problem in that?

VillainsRule commented 10 months ago

Are you guys using replit?

yes, is there any problem in that?

replit banned selfbots

Majoramari commented 10 months ago

Are you guys using replit?

No its on my pc

Notes: I'm using bun 1.0.7 and WSL

2166057 commented 10 months ago

was this resolved? because I still have this issue.

CYCNO commented 10 months ago

Do this To FIX

hope this will help