discordjs / discord.js

A powerful JavaScript library for interacting with the Discord API
https://discord.js.org
Apache License 2.0
25.38k stars 3.97k forks source link

Quick.db #3753

Closed lelbr closed 4 years ago

lelbr commented 4 years ago

When i try to buy something on my quick.db bot, this happens:

(node:17544) DeprecationWarning: ClientUser#setGame: use ClientUser#setActivity instead (node:17544) UnhandledPromiseRejectionWarning: Error: Target is not a number. at Object.module.exports [as subtract] (C:\Users\leona\OneDrive\Área de Trabalho\Piratas do Arybe\node_modules\quick.db\lib\subtract.js:29:36) at arbitrate (C:\Users\leona\OneDrive\Área de Trabalho\Piratas do Arybe\node_modules\quick.db\bin\handler.js:260:25) at Object.subtract (C:\Users\leona\OneDrive\Área de Trabalho\Piratas do Arybe\node_modules\quick.db\bin\handler.js:82:12) at Object.module.exports.run (C:\Users\leona\OneDrive\Área de Trabalho\Piratas do Arybe\commands\buy.js:30:12) at Client. (C:\Users\leona\OneDrive\Área de Trabalho\Piratas do Arybe\index.js:40:17) at Client.emit (events.js:321:20) at MessageCreateHandler.handle (C:\Users\leona\OneDrive\Área de Trabalho\Piratas do Arybe\node_modules\discord.js\src\client\websocket\packets\handlers\MessageCreate.js:9:34) at WebSocketPacketManager.handle (C:\Users\leona\OneDrive\Área de Trabalho\Piratas do Arybe\node_modules\discord.js\src\client\websocket\packets\WebSocketPacketManager.js:105:65) at WebSocketConnection.onPacket (C:\Users\leona\OneDrive\Área de Trabalho\Piratas do Arybe\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:333:35) at WebSocketConnection.onMessage (C:\Users\leona\OneDrive\Área de Trabalho\Piratas do Arybe\node_modules\discord.js\src\client\websocket\WebSocketConnection.js:296:17) (node:17544) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:17544) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.<

almostSouji commented 4 years ago

We do not provide support for third party modules (like quick.db), please refer to their own support server/channels for issues concerning it.

For the deprecation warning please use https://discord.js.org/#/docs/main/stable/class/ClientUser?scrollTo=setActivity going forward, as .setGame will be removed with the next major version