From c313bb64169eba5ae5f181ee21581c853819227e Mon Sep 17 00:00:00 2001 From: Ayaan-Govil <38332695+Ayaan-Govil@users.noreply.github.com> Date: Mon, 11 Jan 2021 05:41:34 -0800 Subject: [PATCH] v4.1.0 Update - Localization support for DMs Users can now use localization in DMs to change the timestamps shown in tournament reminders and user tournament results. --- functions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions.js b/functions.js index 37039f7..7f9e95c 100644 --- a/functions.js +++ b/functions.js @@ -67,8 +67,8 @@ function convertEpochToClock(epoch, citytimezone, showSeconds) { // Use string parsing to remove the need to set two different messages in replies with special formatting function sendMessage(message, specifiedMessage, messageType) { - let guildID; - !message.guild ? guildID = '' : guildID = message.guild.id; + let guildID = ''; + !message.guild ? guildID = message.channel.id : guildID = message.guild.id; languageModel.find({ guildid: guildID }, function (err, result) {