Update ErrorMessage to ChannelNotFound

This commit is contained in:
Ethan Lane 2021-12-04 15:46:47 +00:00
parent ba51cbb28c
commit 68b9ed34e4
Signed by: Vylpes
GPG key ID: EED233CC06D12504
2 changed files with 2 additions and 2 deletions

View file

@ -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";
}

View file

@ -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;
}