From 9b178482605e9e21e5befd36c9094ea6f6fdb421 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Thu, 4 Apr 2024 23:41:29 -0400 Subject: [PATCH] Fix --- commands/voice/morse.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/voice/morse.js b/commands/voice/morse.js index 0f282d6a..11b0f940 100644 --- a/commands/voice/morse.js +++ b/commands/voice/morse.js @@ -38,7 +38,7 @@ module.exports = class MorseCommand extends Command { async run(msg, { text }) { const translated = letterTrans(text.toLowerCase(), dictionary, ' '); const parsed = escapeMarkdown(translated.replace(/ {2}/g, ' / ')); - const connection = this.client.dispatchers.get(msg.guild.id); + const connection = msg.guild && this.client.dispatchers.get(msg.guild.id); if (!connection) { const usage = this.client.registry.commands.get('join').usage(); return msg.reply(stripIndents`