From 68b9ed34e44d2c6ceadf3e41bee04aed7dac3853 Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Sat, 4 Dec 2021 15:46:47 +0000 Subject: [PATCH] Update ErrorMessage to ChannelNotFound --- src/constants/ErrorMessages.ts | 2 +- src/helpers/LogEmbed.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/constants/ErrorMessages.ts b/src/constants/ErrorMessages.ts index c2c9434..a397dcf 100644 --- a/src/constants/ErrorMessages.ts +++ b/src/constants/ErrorMessages.ts @@ -1,5 +1,5 @@ export default class ErrorMessages { public static readonly InsufficientBotPermissions = "Unable to do this action, am I missing permissions?"; - public static readonly CantFindChannel = "Unable to find channel"; + public static readonly ChannelNotFound = "Unable to find channel"; public static readonly RoleNotFound = "Unable to find role"; } \ No newline at end of file diff --git a/src/helpers/LogEmbed.ts b/src/helpers/LogEmbed.ts index 4eff943..c96acdc 100644 --- a/src/helpers/LogEmbed.ts +++ b/src/helpers/LogEmbed.ts @@ -38,7 +38,7 @@ export default class LogEmbed extends MessageEmbed { .find(channel => channel.name == name) as TextChannel; if (!channel) { - const errorEmbed = new ErrorEmbed(this._context, ErrorMessages.CantFindChannel); + const errorEmbed = new ErrorEmbed(this._context, ErrorMessages.ChannelNotFound); errorEmbed.SendToCurrentChannel(); return; }