Feature/23 migrate to typescript #73

Merged
Vylpes merged 19 commits from feature/23-migrate-to-typescript into develop 2021-12-04 15:51:41 +00:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 68b9ed34e4 - Show all commits

View file

@ -1,5 +1,5 @@
VylpesTester commented 2021-12-03 17:27:58 +00:00 (Migrated from github.com)
Review

ChannelNotFound

`ChannelNotFound`
VylpesTester commented 2021-12-03 17:27:58 +00:00 (Migrated from github.com)
Review

ChannelNotFound

`ChannelNotFound`
export default class ErrorMessages { export default class ErrorMessages {
public static readonly InsufficientBotPermissions = "Unable to do this action, am I missing permissions?"; 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";
VylpesTester commented 2021-12-03 17:27:58 +00:00 (Migrated from github.com)
Review

ChannelNotFound

`ChannelNotFound`
VylpesTester commented 2021-12-03 17:27:58 +00:00 (Migrated from github.com)
Review

ChannelNotFound

`ChannelNotFound`
public static readonly RoleNotFound = "Unable to find role"; 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; .find(channel => channel.name == name) as TextChannel;
if (!channel) { if (!channel) {
const errorEmbed = new ErrorEmbed(this._context, ErrorMessages.CantFindChannel); const errorEmbed = new ErrorEmbed(this._context, ErrorMessages.ChannelNotFound);
errorEmbed.SendToCurrentChannel(); errorEmbed.SendToCurrentChannel();
return; return;
} }