From 1ea4c3e9df8115f315b7c51a1ef12dfef8972895 Mon Sep 17 00:00:00 2001 From: Taken Date: Sat, 24 Feb 2024 13:15:55 +0100 Subject: [PATCH] Updated template literal strings --- src/commands/anime.ts | 2 +- src/commands/ban.ts | 2 +- src/commands/botinfo.ts | 4 ++-- src/commands/clear.ts | 2 +- src/commands/forceunverify.ts | 2 +- src/commands/forceupdate.ts | 4 ++-- src/commands/forceverify.ts | 2 +- src/commands/kick.ts | 2 +- src/commands/music/nowplaying.ts | 2 +- src/commands/remove.ts | 2 +- src/commands/setnick.ts | 2 +- src/commands/slowmode.ts | 2 +- src/commands/timeout.ts | 2 +- src/commands/unban.ts | 2 +- src/commands/update.ts | 4 ++-- 15 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/commands/anime.ts b/src/commands/anime.ts index a0bb926..65cf14a 100644 --- a/src/commands/anime.ts +++ b/src/commands/anime.ts @@ -76,7 +76,7 @@ export = { **Season:** ${animeSeason} **Start Date:** ${animeStartDate} **End Date:** ${animeEndDate} - `, + `.replace(/\n */g, "\n"), color: embedColor, thumbnail: { url: anime.coverImage?.medium || "" diff --git a/src/commands/ban.ts b/src/commands/ban.ts index f5ed9ca..b9633f3 100644 --- a/src/commands/ban.ts +++ b/src/commands/ban.ts @@ -106,7 +106,7 @@ export = { **Mod:** ${userMention(mod.user.id)} **Reason:** ${reason} **Messages Deleted:** ${messageDeletionDays} days - `, + `.replace(/\n */g, "\n"), color: embedColor, thumbnail: { url: mod.user.avatarURL() || "" diff --git a/src/commands/botinfo.ts b/src/commands/botinfo.ts index f293550..70f6db3 100644 --- a/src/commands/botinfo.ts +++ b/src/commands/botinfo.ts @@ -8,7 +8,7 @@ const { dependencies, devDependencies } = require("../../package.json") export = { name: "botinfo", description: "Get information about the bot", - dev: false, + dev: true, public: true, data: new SlashCommandBuilder() @@ -63,7 +63,7 @@ export = { > **Channels:** \`${client.channels.cache.size}\` > **Users:** \`${client.users.cache.size}\` > **Roles:** \`${client.guilds.cache.reduce((a, b) => a + b.roles.cache.size, 0)}\` - `, + `.replace(/\n */g, "\n"), thumbnail: { url: client.user!.avatarURL() || "", }, diff --git a/src/commands/clear.ts b/src/commands/clear.ts index 2983a34..c9bb463 100644 --- a/src/commands/clear.ts +++ b/src/commands/clear.ts @@ -56,7 +56,7 @@ export = { **Channel:** ${channelMention(channel.id)} **Amount:** \`${messages.size}\` messages **Mod:** ${userMention(interaction.user.id)} - `, + `.replace(/\n */g, "\n"), color: embedColor, thumbnail: { url: interaction.user.avatarURL() || "" diff --git a/src/commands/forceunverify.ts b/src/commands/forceunverify.ts index eef2932..9acff58 100644 --- a/src/commands/forceunverify.ts +++ b/src/commands/forceunverify.ts @@ -61,7 +61,7 @@ export = { **Mod:** ${userMention(mod.id)} **IGN:** \`${ign}\` **UUID:** \`${uuid}\` - `, + `.replace(/\n */g, "\n"), color: embedColor, thumbnail: { url: mod.avatarURL() || "" diff --git a/src/commands/forceupdate.ts b/src/commands/forceupdate.ts index f993fd9..e51e636 100644 --- a/src/commands/forceupdate.ts +++ b/src/commands/forceupdate.ts @@ -88,7 +88,7 @@ export = { ${usermentioned} was given the \`Default Member\` role. IGN: \`${ign}\` - `, + `.replace(/\n */g, "\n"), color: embedColor, thumbnail: { url: head! @@ -162,7 +162,7 @@ export = { ${usermentioned} was given the \`${replyRank}\` role. IGN: \`${ign}\` - `, + `.replace(/\n */g, "\n"), color: embedColor, thumbnail: { url: head! diff --git a/src/commands/forceverify.ts b/src/commands/forceverify.ts index 74f0fbf..52a5da8 100644 --- a/src/commands/forceverify.ts +++ b/src/commands/forceverify.ts @@ -179,7 +179,7 @@ export = { **Mod:** ${userMention(mod.id)} **IGN:** \`${player.displayname}\` **UUID:** \`${uuid}\` - `, + `.replace(/\n */g, "\n"), color: embedColor, thumbnail: { url: mod.avatarURL() || "" diff --git a/src/commands/kick.ts b/src/commands/kick.ts index 2336c3d..845d6ce 100644 --- a/src/commands/kick.ts +++ b/src/commands/kick.ts @@ -79,7 +79,7 @@ export = { **User:** ${userMention(member.user.id)} **Mod:** ${userMention(mod.user.id)} **Reason:** ${reason} - `, + `.replace(/\n */g, "\n"), color: embedColor, thumbnail: { url: mod.user.avatarURL() || "" diff --git a/src/commands/music/nowplaying.ts b/src/commands/music/nowplaying.ts index 5e65f3f..fc892c3 100644 --- a/src/commands/music/nowplaying.ts +++ b/src/commands/music/nowplaying.ts @@ -45,7 +45,7 @@ export default async function nowplaying(interaction: ChatInputCommandInteractio [${current.title}](${current.url}) ${progressBar} - `, + `.replace(/\n */g, "\n"), color: embedColor, thumbnail: { url: current.thumbnail diff --git a/src/commands/remove.ts b/src/commands/remove.ts index abc8ab0..7b74b50 100644 --- a/src/commands/remove.ts +++ b/src/commands/remove.ts @@ -61,7 +61,7 @@ export = { **User:** ${userMention(member.user.id)} **Reason:** ${reason} **Mod:** ${userMention(mod.id)} - `, + `.replace(/\n */g, "\n"), color: embedColor, thumbnail: { url: mod.avatarURL() || "" diff --git a/src/commands/setnick.ts b/src/commands/setnick.ts index 538191f..614302e 100644 --- a/src/commands/setnick.ts +++ b/src/commands/setnick.ts @@ -52,7 +52,7 @@ export = { **User:** ${userMention(member.id)} **Nickname:** ${nickname} **Moderator:** ${userMention(interaction.user.id)} - `, + `.replace(/\n */g, "\n"), color: embedColor, thumbnail: { url: interaction.user.avatarURL() || "" diff --git a/src/commands/slowmode.ts b/src/commands/slowmode.ts index a478517..5748e1b 100644 --- a/src/commands/slowmode.ts +++ b/src/commands/slowmode.ts @@ -58,7 +58,7 @@ export = { **Channel:** ${channelMention(channel.id)} **Slowmode:** ${seconds} seconds **Mod:** ${userMention(interaction.user.id)} - `, + `.replace(/\n */g, "\n"), color: embedColor, thumbnail: { url: interaction.user.avatarURL() || "" diff --git a/src/commands/timeout.ts b/src/commands/timeout.ts index dad6e3d..dff6de9 100644 --- a/src/commands/timeout.ts +++ b/src/commands/timeout.ts @@ -137,7 +137,7 @@ export = { ${timeouttime === null ? "**Time:** `None`" : "**Time:** `" + prettyTime + "`"} **Reason:** \`${reason}\` **Mod:** ${userMention(mod.id)} - `, + `.replace(/\n */g, "\n"), color: embedColor, thumbnail: { url: mod.user.avatarURL() || "" diff --git a/src/commands/unban.ts b/src/commands/unban.ts index 67135d1..1de44c0 100644 --- a/src/commands/unban.ts +++ b/src/commands/unban.ts @@ -71,7 +71,7 @@ export = { **User:** ${userMention(user!.id)} **Mod:** ${userMention(mod.id)} **Reason:** ${reason} - `, + `.replace(/\n */g, "\n"), color: embedColor, thumbnail: { url: mod.avatarURL() || "" diff --git a/src/commands/update.ts b/src/commands/update.ts index 32ceb8f..e1ab8ae 100644 --- a/src/commands/update.ts +++ b/src/commands/update.ts @@ -71,7 +71,7 @@ export = { Updated your roles to \`Default Member\` IGN: \`${ign}\` - `, + `.replace(/\n */g, "\n"), color: embedColor, thumbnail: { url: head! @@ -146,7 +146,7 @@ export = { Updated your roles to \`${replyRank}\` IGN: \`${ign}\` - `, + `.replace(/\n */g, "\n"), color: embedColor, thumbnail: { url: head!