Skip to content
This repository has been archived by the owner on Dec 9, 2022. It is now read-only.

🐛Bug: Hug command and slap command not working #150

Closed
jaspermayone opened this issue May 14, 2021 · 2 comments · Fixed by #163
Closed

🐛Bug: Hug command and slap command not working #150

jaspermayone opened this issue May 14, 2021 · 2 comments · Fixed by #163
Milestone

Comments

@jaspermayone
Copy link
Collaborator

(node:46092) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'mentions' of undefined
at Object.execute (/Users/jasper/Desktop/Coding/Projects/ProjectHeptagram/Heptagram/commands/Fun/hug.js:6:29)
at module.exports (/Users/jasper/Desktop/Coding/Projects/ProjectHeptagram/Heptagram/events/guild/message.js:15:34)
at Client.emit (events.js:327:22)
at MessageCreateAction.handle (/Users/jasper/Desktop/Coding/Projects/ProjectHeptagram/Heptagram/node_modules/discord.js/src/client/actions/MessageCreate.js:31:14)
at Object.module.exports [as MESSAGE_CREATE] (/Users/jasper/Desktop/Coding/Projects/ProjectHeptagram/Heptagram/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (/Users/jasper/Desktop/Coding/Projects/ProjectHeptagram/Heptagram/node_modules/discord.js/src/client/websocket/WebSocketManager.js:384:31)
at WebSocketShard.onPacket (/Users/jasper/Desktop/Coding/Projects/ProjectHeptagram/Heptagram/node_modules/discord.js/src/client/websocket/WebSocketShard.js:444:22)
at WebSocketShard.onMessage (/Users/jasper/Desktop/Coding/Projects/ProjectHeptagram/Heptagram/node_modules/discord.js/src/client/websocket/WebSocketShard.js:301:10)
at WebSocket.onMessage (/Users/jasper/Desktop/Coding/Projects/ProjectHeptagram/Heptagram/node_modules/ws/lib/event-target.js:132:16)
at WebSocket.emit (events.js:315:20)
at Receiver.receiverOnMessage (/Users/jasper/Desktop/Coding/Projects/ProjectHeptagram/Heptagram/node_modules/ws/lib/websocket.js:835:20)
at Receiver.emit (events.js:315:20)
at Receiver.dataMessage (/Users/jasper/Desktop/Coding/Projects/ProjectHeptagram/Heptagram/node_modules/ws/lib/receiver.js:437:14)
at Receiver.getData (/Users/jasper/Desktop/Coding/Projects/ProjectHeptagram/Heptagram/node_modules/ws/lib/receiver.js:367:17)
at Receiver.startLoop (/Users/jasper/Desktop/Coding/Projects/ProjectHeptagram/Heptagram/node_modules/ws/lib/receiver.js:143:22)
at Receiver._write (/Users/jasper/Desktop/Coding/Projects/ProjectHeptagram/Heptagram/node_modules/ws/lib/receiver.js:78:10)
(Use node --trace-warnings ... to show where the warning was created)
(node:46092) 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:46092) [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.

@jaspermayone jaspermayone added this to the Initial Release Features milestone May 14, 2021
jaspermayone added a commit that referenced this issue May 14, 2021
@jaspermayone jaspermayone changed the title Bug: "Hug" command not working Bug: Hug command and slap command not working May 14, 2021
jaspermayone added a commit that referenced this issue May 14, 2021
@jaspermayone jaspermayone changed the title Bug: Hug command and slap command not working 🐛Bug: Hug command and slap command not working May 18, 2021
@squarecylinder
Copy link
Contributor

squarecylinder commented May 19, 2021

Hey I fixed the bugs, I just don't know how to create the PR lol.
EDIT - I submitted a PR!

@github-actions
Copy link

This issue is locked due to inactivity.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants