unhandled RangeError with users command #8

Closed
opened 2021-09-12 03:12:25 -04:00 by hiroyuki · 4 comments
hiroyuki commented 2021-09-12 03:12:25 -04:00 (Migrated from gitlab.libraryofcode.org)

Using =users with either the t2 or t3 argument throws this exception. The command isn't disabled. The last message is just kept in a loading state.

RangeError [MESSAGE_CONTENT_TYPE]: Message content must be a non-empty string.
    at Function.verifyString (/opt/CloudServices/node_modules/discord.js/src/util/Util.js:414:49)
    at MessagePayload.makeContent (/opt/CloudServices/node_modules/discord.js/src/structures/MessagePayload.js:113:22)
    at MessagePayload.resolveData (/opt/CloudServices/node_modules/discord.js/src/structures/MessagePayload.js:128:26)
    at MessageManager.edit (/opt/CloudServices/node_modules/discord.js/src/managers/MessageManager.js:129:8)
    at Message.edit (/opt/CloudServices/node_modules/discord.js/src/structures/Message.js:627:34)
    at Users.run (/opt/CloudServices/dist/commands/users.js:57:21)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async default_1.run (/opt/CloudServices/dist/events/messageCreate.js:50:13) 
Using `=users` with either the `t2` or `t3` argument throws this exception. The command isn't disabled. The last message is just kept in a loading state. ``` RangeError [MESSAGE_CONTENT_TYPE]: Message content must be a non-empty string. at Function.verifyString (/opt/CloudServices/node_modules/discord.js/src/util/Util.js:414:49) at MessagePayload.makeContent (/opt/CloudServices/node_modules/discord.js/src/structures/MessagePayload.js:113:22) at MessagePayload.resolveData (/opt/CloudServices/node_modules/discord.js/src/structures/MessagePayload.js:128:26) at MessageManager.edit (/opt/CloudServices/node_modules/discord.js/src/managers/MessageManager.js:129:8) at Message.edit (/opt/CloudServices/node_modules/discord.js/src/structures/Message.js:627:34) at Users.run (/opt/CloudServices/dist/commands/users.js:57:21) at runMicrotasks (<anonymous>) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async default_1.run (/opt/CloudServices/dist/events/messageCreate.js:50:13)  ```
eirk commented 2021-09-12 08:35:08 -04:00 (Migrated from gitlab.libraryofcode.org)

mentioned in merge request !6

mentioned in merge request !6
eirk commented 2021-09-12 08:36:25 -04:00 (Migrated from gitlab.libraryofcode.org)

should be fixed in engineering/cloudservices!6

should be fixed in engineering/cloudservices!6
hiroyuki commented 2021-09-12 21:43:01 -04:00 (Migrated from gitlab.libraryofcode.org)

mentioned in commit 502321ee2e

mentioned in commit 502321ee2eca9572ed8b221d63b0ecb0d9ce6a3b
hiroyuki commented 2021-09-12 22:13:42 -04:00 (Migrated from gitlab.libraryofcode.org)

=modlogs is also affected by this bug. Do not close until =modlogs is fixed.

`=modlogs` is also affected by this bug. Do not close until `=modlogs` is fixed.
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/cloudservices#8
There is no content yet.