TypeError: message.channel.createMessage is not a function #13

Closed
opened 2022-09-01 18:20:00 -04:00 by matthew · 1 comment
matthew commented 2022-09-01 18:20:00 -04:00 (Migrated from gitlab.libraryofcode.org)

Sentry Issue: CR-H

This error is occurring because we believe Discord is no longer sending DMChannel with Message. This error is only able to be reproduced in DMs.

TypeError: message.channel.createMessage is not a function
  File "/opt/communityrelations/build/events/CommandHandler.js", line 27, in CommandHandler.run
    message.channel.createMessage(`***${this.client.util.emojis.ERROR} This command has been disabled***`);
Sentry Issue: [CR-H](https://sentry.libraryofcode.org/organizations/loc/issues/26/?referrer=gitlab_integration) This error is occurring because we believe Discord is no longer sending `DMChannel` with `Message`. This error is only able to be reproduced in DMs. ``` TypeError: message.channel.createMessage is not a function File "/opt/communityrelations/build/events/CommandHandler.js", line 27, in CommandHandler.run message.channel.createMessage(`***${this.client.util.emojis.ERROR} This command has been disabled***`); ```
Damian commented 2022-09-18 13:52:46 -04:00 (Migrated from gitlab.libraryofcode.org)

Is this the only error in the code? I'll see if I can submit any merge requests.

Is this the only error in the code? I'll see if I can submit any merge requests.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: engineering/community-relations#13
There is no content yet.