Skip to content

Tag: node.js

I am trying to make a discord.js command that creates a role named “MUTED” and overwrites all the channel permission to set “Send message” to false [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 2 years ago. Improve this question I want to make it so that it creates the role and then overwrites the permissions in every c…

Jest: TypeError: replaceAll is not a function

String.prototype.replaceAll() is a useful method and while building and executing everything works fine. However, all Jest-tests fail with the following error: These are my dependencies: How can I fix this behavior? Answer The problem This happens because replaceAll is a new function not implemented in all br…

Webpack Configuration Error – where is the bug?

I try to run “node index.js” and get the following error message: ValidationError: Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema. configuration.module.rules[0] should be one of these: [“…” | object { com…