diff --git a/src/helpers/functions/formatLog.ts b/src/helpers/functions/formatLog.ts index 4e73f058..2a69cbcb 100644 --- a/src/helpers/functions/formatLog.ts +++ b/src/helpers/functions/formatLog.ts @@ -41,9 +41,7 @@ export function formatLogURL(data: any) { // slash command constructed url if (data.guildId && data.channelId) - return `https://discord.com/channels/${data.guildId}/${data.channelId}/${ - data.messageId ? data.messageId : "" - }`; + return `https://discord.com/channels/${data.guildId}/${data.channelId}/${data.messageId || ""}`; if (data.guild) return `Guild ID is ${data.guild.id}`; diff --git a/src/helpers/images/ColorManager.ts b/src/helpers/images/ColorManager.ts index 8b089be0..1796b88b 100644 --- a/src/helpers/images/ColorManager.ts +++ b/src/helpers/images/ColorManager.ts @@ -287,7 +287,7 @@ export default class ColorManager { } } else options.hex = "000000ff"; - const arr = options.hex.match(/.{2}/g); // cut it each 2 chars; + const arr = options.hex.match(/.{2}/g); // split into groups of two this.color = { r: parseInt(arr[0], 16), g: parseInt(arr[1], 16),