Luna icon indicating copy to clipboard operation
Luna copied to clipboard

Fix?

Open NaturalDev opened this issue 3 years ago • 14 comments

DiscordAPIError: Cannot send an empty message at RequestHandler.execute (C:\Users\Sasyy\Dropbox\Il mio PC (DESKTOP-UPMFOB5)\Desktop\Dixie Loves You\node_modules\discord.js\src\rest\RequestHandler.js:154:13) at processTicksAndRejections (internal/process/task_queues.js:95:5) at async RequestHandler.push (C:\Users\Sasyy\Dropbox\Il mio PC (DESKTOP-UPMFOB5)\Desktop\Dixie Loves You\node_modules\discord.js\src\rest\RequestHandler.js:39:14) { method: 'post', path: '/channels/846777401131270167/messages', code: 50006, httpStatus: 400

NaturalDev avatar May 25 '21 16:05 NaturalDev

Can you give me some details about the context? What command did you use?

Asgarrrr avatar May 25 '21 16:05 Asgarrrr

i used "node Luna.js"

NaturalDev avatar May 25 '21 16:05 NaturalDev

and when i try to make a command it doesn't respond and in the terminal i see that error

NaturalDev avatar May 25 '21 16:05 NaturalDev

I used commands like "! play,! avatar,! ping,! ban,! kick"

NaturalDev avatar May 25 '21 16:05 NaturalDev

Strange :/ I never had this problem ( and the default prefix is £, you can change it with £prefix ) Try a £ping

Asgarrrr avatar May 25 '21 16:05 Asgarrrr

Capture d’écran 2021-05-25 à 18 58 14

Asgarrrr avatar May 25 '21 16:05 Asgarrrr

79 packages are looking for funding run npm fund for details __ ____ __ / / __ ______ ____ / __ )___ / /_ / / / / / / __ / __ `/ __ / __ / / / // // / / / / // / // / // / / //_,// //_,//___/_/

Connected — CENSORED is here ! On 3 servers, for 1 users and 12 channels

NaturalDev avatar May 25 '21 17:05 NaturalDev

image

NaturalDev avatar May 25 '21 17:05 NaturalDev

image

7 moderate severity vulnerabilities

NaturalDev avatar May 25 '21 17:05 NaturalDev

image

The default prefix is not !, but £ ...

Asgarrrr avatar May 25 '21 18:05 Asgarrrr

i changed it and i set !

NaturalDev avatar May 25 '21 18:05 NaturalDev

Mhhh I see, it's my fault, we don't care about the prefix in the conf.js, use the command £prefix !

Asgarrrr avatar May 25 '21 18:05 Asgarrrr

Capture d’écran 2021-05-25 à 20 25 41

Asgarrrr avatar May 25 '21 18:05 Asgarrrr

Hello! I was able to fix the bug! On Python 3.9 the "danbooru" package uninstalls This error can be noticed by taking the screenshot 2 seconds before the luna bot starts, as it says that the module is missing .. but for a short time!

To fix it npm i danbooru

NaturalDev avatar May 26 '21 09:05 NaturalDev