This commit is contained in:
Dragon Fire
2021-04-23 13:55:27 -04:00
parent 00bca0b75e
commit 9297996d3c
+1 -1
View File
@@ -30,7 +30,7 @@ module.exports = class DomainAvailableCommand extends Command {
}
async run(msg, { url }) {
const { type, domain, topLevelDomains } = parseDomain(parsed.hostname);
const { type, domain, topLevelDomains } = parseDomain(url.hostname);
if (type !== ParseResultType.Listed) return msg.reply('This domain is not supported.');
try {
const { body } = await request