Unit testing Discord bot's has been a topic that's been discussed on and off in the DiscordJS community and the short answer has always been: just don't bother trying. It's not worth the effort. Mocking calls to the Discord API without a full blown Discord API mocking framework is nigh on impossible. The consensus has always been to extract the code that you want to test and test it separately without the scope of Discord stuff.