|
@@ -98,8 +98,8 @@ export class GuideCommands {
|
|
);
|
|
);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
-
|
|
|
|
- if (!Object.values(GuideType).includes(type)) {
|
|
|
|
|
|
+
|
|
|
|
+ if (!(<string[]>Object.values(GuideType)).includes(type)) {
|
|
msg.channel.send(
|
|
msg.channel.send(
|
|
`${msg.author.toString()} The type ${type} is not a valid guide type!`
|
|
`${msg.author.toString()} The type ${type} is not a valid guide type!`
|
|
);
|
|
);
|
|
@@ -172,7 +172,7 @@ export class GuideCommands {
|
|
let type = match[1];
|
|
let type = match[1];
|
|
let keywords = match[2].toLowerCase().split(" ").map(s => s.trim()).filter(s => s.length != 0);
|
|
let keywords = match[2].toLowerCase().split(" ").map(s => s.trim()).filter(s => s.length != 0);
|
|
|
|
|
|
- if (!Object.values(GuideType).includes(type)) {
|
|
|
|
|
|
+ if (!(<string[]>Object.values(GuideType)).includes(type)) {
|
|
await msg.channel.send(
|
|
await msg.channel.send(
|
|
`${msg.author.toString()} The type ${type} is not a valid guide type!`
|
|
`${msg.author.toString()} The type ${type} is not a valid guide type!`
|
|
);
|
|
);
|