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

messageReactionAdd Event Error (messageReactionRemove doesn't run at all) #1295

Closed
FireController1847 opened this issue Mar 23, 2017 · 3 comments

Comments

@FireController1847
Copy link
Contributor

https://github.com/hydrabolt/discord.js/blob/master/src/structures/MessageReaction.js#L34

At the line stated above, it is currently saying "this.emoji" is undefined. messageReactionAdd works fine.

Full Error:

TypeError: Cannot read property 'name' of undefined
at new MessageReaction (/root/node_modules/discord.js/src/structures/MessageReaction.js:34:48)
at Message.patch (/root/node_modules/discord.js/src/structures/Message.js:231:34)
at MessageUpdateAction.handle (/root/node_modules/discord.js/src/client/actions/MessageUpdate.js:14:17)
at rest.makeRequest.then.data (/root/node_modules/discord.js/src/client/rest/RESTMethods.js:96:55)
at propagateAslWrapper (/usr/lib/node_modules/pm2/node_modules/async-listener/index.js:421:23)
at /usr/lib/node_modules/pm2/node_modules/async-listener/index.js:458:70
at process._tickDomainCallback [as _tickCallback] (internal/process/next_tick.js:129:7)
`

@FireController1847
Copy link
Contributor Author

Running discord.js@11.0.0 (git://github.com/hydrabolt/discord.js.git#c73b9483f4058f8c8e8ddb6a0bbecfb7a77a449e)

@FireController1847
Copy link
Contributor Author

My mistake, this happens with messageReactionAdd. My messageReactionRemove event does not run on a removement of a reaction, which is a separate issue in itself.

@FireController1847 FireController1847 changed the title Message Reaction Remove Event Error messageReactionAdd Event Error (messageReactionRemove doesn't run at all) Mar 23, 2017
@FireController1847
Copy link
Contributor Author

No-one. Saw. Anything.

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

No branches or pull requests

2 participants