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

HELP CODE #4

Closed
SapkaliBeyfendi opened this issue May 14, 2021 · 2 comments
Closed

HELP CODE #4

SapkaliBeyfendi opened this issue May 14, 2021 · 2 comments
Labels
invalid This doesn't seem right

Comments

@SapkaliBeyfendi
Copy link

(node:801) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'ensure' of undefined
at ensureGuildSettings (/app/functions.js:452:21)
at module.exports (/app/events/message.js:6:5)
at Client.emit (events.js:198:13)
at MessageCreateAction.handle (/rbd/pnpm-volume/2eee3377-842e-431b-a1a6-5bcfb3728442/node_modules/discord.js/src/client/actions/MessageCreate.js:31:14)
at Object.module.exports [as MESSAGE_CREATE] (/rbd/pnpm-volume/2eee3377-842e-431b-a1a6-5bcfb3728442/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (/rbd/pnpm-volume/2eee3377-842e-431b-a1a6-5bcfb3728442/node_modules/discord.js/src/client/websocket/WebSocketManager.js:384:31)
at WebSocketShard.onPacket (/rbd/pnpm-volume/2eee3377-842e-431b-a1a6-5bcfb3728442/node_modules/discord.js/src/client/websocket/WebSocketShard.js:444:22)
at WebSocketShard.onMessage (/rbd/pnpm-volume/2eee3377-842e-431b-a1a6-5bcfb3728442/node_modules/discord.js/src/client/websocket/WebSocketShard.js:301:10)
at WebSocket.onMessage (/rbd/pnpm-volume/2eee3377-842e-431b-a1a6-5bcfb3728442/node_modules/discord.js/node_modules/ws/lib/event-target.js:132:16)
at WebSocket.emit (events.js:198:13)
(node:801) 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(). (rejection id: 2)
(node:801) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'ensure' of undefined
at ensureGuildSettings (/app/functions.js:452:21)
at module.exports (/app/events/message.js:6:5)
at Client.emit (events.js:198:13)
at MessageCreateAction.handle (/rbd/pnpm-volume/2eee3377-842e-431b-a1a6-5bcfb3728442/node_modules/discord.js/src/client/actions/MessageCreate.js:31:14)
at Object.module.exports [as MESSAGE_CREATE] (/rbd/pnpm-volume/2eee3377-842e-431b-a1a6-5bcfb3728442/node_modules/discord.js/src/client/websocket/handlers/MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (/rbd/pnpm-volume/2eee3377-842e-431b-a1a6-5bcfb3728442/node_modules/discord.js/src/client/websocket/WebSocketManager.js:384:31)
at WebSocketShard.onPacket (/rbd/pnpm-volume/2eee3377-842e-431b-a1a6-5bcfb3728442/node_modules/discord.js/src/client/websocket/WebSocketShard.js:444:22)
at WebSocketShard.onMessage (/rbd/pnpm-volume/2eee3377-842e-431b-a1a6-5bcfb3728442/node_modules/discord.js/src/client/websocket/WebSocketShard.js:301:10)
at WebSocket.onMessage (/rbd/pnpm-volume/2eee3377-842e-431b-a1a6-5bcfb3728442/node_modules/discord.js/node_modules/ws/lib/event-target.js:132:16)
at WebSocket.emit (events.js:198:13)
(node:801) 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(). (rejection id: 3)

@mirko93s
Copy link
Owner

mirko93s commented May 14, 2021

Did you change any code anywhere? What were you doing when you got this error? I never got an error with that function

@mirko93s mirko93s added the invalid This doesn't seem right label May 14, 2021
@mirko93s mirko93s reopened this May 15, 2021
@mirko93s
Copy link
Owner

This is not a bug related to my bot, if you need further help contact me on discord

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants