diff --git a/packages/discord-bot/src/handlers/forward.ts b/packages/discord-bot/src/handlers/forward.ts index 6b91de390..18e9b0377 100644 --- a/packages/discord-bot/src/handlers/forward.ts +++ b/packages/discord-bot/src/handlers/forward.ts @@ -1,5 +1,5 @@ import { PraiseModel } from 'api/dist/praise/entities'; -import { Message, GuildMember, Util } from 'discord.js'; +import { GuildMember, Util } from 'discord.js'; import { UserModel } from 'api/dist/user/entities'; import { EventLogTypeKey } from 'api/src/eventlog/types'; import { logEvent } from 'api/src/eventlog/utils'; @@ -181,7 +181,7 @@ export const forwardHandler: CommandHandler = async ( ? await interaction.editReply(await selfPraiseWarning()) : await interaction.editReply(await invalidReceiverError()); - let warningMsg = + const warningMsg = (receiverData.undefinedReceivers ? (await undefinedReceiverWarning( receiverData.undefinedReceivers.join(', '), diff --git a/packages/discord-bot/src/handlers/praise.ts b/packages/discord-bot/src/handlers/praise.ts index 5055fbf24..56b325083 100644 --- a/packages/discord-bot/src/handlers/praise.ts +++ b/packages/discord-bot/src/handlers/praise.ts @@ -2,7 +2,7 @@ import { PraiseModel } from 'api/dist/praise/entities'; import { EventLogTypeKey } from 'api/src/eventlog/types'; import { logEvent } from 'api/src/eventlog/utils'; import logger from 'jet-logger'; -import { GuildMember, Message, User, Util } from 'discord.js'; +import { GuildMember, User, Util } from 'discord.js'; import { settingValue } from 'api/dist/shared/settings'; import { dmError, @@ -155,7 +155,7 @@ export const praiseHandler: CommandHandler = async ( ? await interaction.editReply(await selfPraiseWarning()) : await interaction.editReply(await invalidReceiverError()); - let warningMsg = + const warningMsg = (receiverData.undefinedReceivers ? (await undefinedReceiverWarning( receiverData.undefinedReceivers