Androz2091/scratch-for-discord

Do you want to work on this issue?

You can request for a bounty in order to promote it!

Bulk delete is missing a new line in js code #403

Hallohannes123 posted onGitHub

I'm running my bot on repl.it but whenever I export the bot its missing a new line and a semicolon after the bulkDelete command so the syntax gets an error:

    if (command == '.cc' && author.hasPermission('BAN_MEMBERS')) {
        s4d.client.channels.cache.find((channel) => channel.name === msgChannel).bulkDelete((argList | 1)) s4dmessage.channel.send(String((['Deleted ', argList.join(' '), ' messages.'].join(''))));
        s4dmessage.delete();
    }

image


Would this help?

if (command == '.cc' && author.hasPermission('BAN_MEMBERS')) {
        s4d.client.channels.cache.find((channel) => channel.name === msgChannel).bulkDelete((argList | 1));
        s4dmessage.channel.send(String((['Deleted ', argList.join(' '), ' messages.'].join(''))));
        s4dmessage.delete();
}
posted by kareemsaf over 3 years ago

Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests