Skip to content

Commit

Permalink
v4.1.0 Update - Localization support for DMs
Browse files Browse the repository at this point in the history
Users can now use localization in DMs to change the timestamps shown in tournament reminders and user tournament results.
  • Loading branch information
Ayaan-Govil authored Jan 11, 2021
1 parent 45fa5f0 commit c313bb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c313bb6

Please sign in to comment.