Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

episode 4 is online but when i write command.... #48

Open
TomClv opened this issue Apr 19, 2020 · 1 comment
Open

episode 4 is online but when i write command.... #48

TomClv opened this issue Apr 19, 2020 · 1 comment

Comments

@TomClv
Copy link

TomClv commented Apr 19, 2020

(node:3056) UnhandledPromiseRejectionWarning: ReferenceError: arg is not defined
at Client. (/Users/studio_1/Desktop/discorbots/ban/index.js:37:17)
at Client.emit (events.js:315:20)
at MessageCreateAction.handle (/Users/studio_1/Desktop/discorbots/ban/node_modules/discord.js/src/client/actions/MessageCreate.js:31:14)
at Object.module.exports [as MESSAGE_CREATE] (/Users/studio_1/Desktop/discorbots/ban/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (/Users/studio_1/Desktop/discorbots/ban/node_modules/discord.js/src/client/websocket/WebSocketManager.js:386:31)
at WebSocketShard.onPacket (/Users/studio_1/Desktop/discorbots/ban/node_modules/discord.js/src/client/websocket/WebSocketShard.js:436:22)
at WebSocketShard.onMessage (/Users/studio_1/Desktop/discorbots/ban/node_modules/discord.js/src/client/websocket/WebSocketShard.js:293:10)
at WebSocket.onMessage (/Users/studio_1/Desktop/discorbots/ban/node_modules/ws/lib/event-target.js:120:16)
at WebSocket.emit (events.js:315:20)
at Receiver.receiverOnMessage (/Users/studio_1/Desktop/discorbots/ban/node_modules/ws/lib/websocket.js:801:20)
(node:3056) 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:3056) [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.

@PantheraRed
Copy link

May you show some code or any sort of reference (screenshot) for us to understand better?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants