You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is already possible, one such method could be building the modules without logging in then interacting with those modules, e.g.
client.commandHandler.modules.get('roll').exec({// Mocks a message objectsend(content){console.log(content);}},{// Mocks argsfaces: 6});
Another method could be emitting the events you want to test, such as the message event.
If you mean more than this, such as simulating entire guilds and users to work with, then you would have to bring the issue to discord.js.
Would be nice if we could mock commands and users so we can unit test our bots.
Possibly expose methods to invoke commands with mocked data.
The text was updated successfully, but these errors were encountered: