some small tweaks
diff --git a/package.json b/package.json
index 2bc01e5..7a0052d 100644
--- a/package.json
+++ b/package.json
@@ -32,7 +32,7 @@
"force-dev": "rm -rf dist && eslint . --fix; tsc-suppress && node --experimental-json-modules --enable-source-maps dist/index.js",
"lint": "echo 'Style checking...'; prettier --check .; echo 'Linting...'; eslint .; echo 'To auto-fix everything possible, please run `yarn lint-fix`'; true",
"lint-fix": "echo 'Fixing eslint issues...'; eslint . --fix; echo 'Reformatting...'; prettier --write --loglevel warn --cache .; true",
- "lint-list": "echo 'Style checking...'; prettier --check .; echo 'Linting...'; eslint .; echo 'To view erors in more detail, please run `yarn lint`; true"
+ "lint-list": "echo 'Style checking...'; prettier --check .; echo 'Linting...'; eslint .; echo 'To view errors in more detail, please run `yarn lint`; true"
},
"repository": {
"type": "git",
diff --git a/src/commands/settings/welcome.ts b/src/commands/settings/welcome.ts
index 00b1826..d2843c5 100644
--- a/src/commands/settings/welcome.ts
+++ b/src/commands/settings/welcome.ts
@@ -98,9 +98,6 @@
]
});
}
- role = role as Discord.Role;
- ping = ping as Discord.Role;
- channel = channel as Discord.TextChannel;
const options = {};
if (role) options.role = renderRole(role);
if (ping) options.ping = renderRole(ping);
diff --git a/src/events/channelDelete.ts b/src/events/channelDelete.ts
index ee46204..defb482 100644
--- a/src/events/channelDelete.ts
+++ b/src/events/channelDelete.ts
@@ -4,7 +4,7 @@
export async function callback(client, channel) {
const { getAuditLog, log, NucleusColors, entry, renderDelta, renderUser } =
- channel.client.logger;
+ client.logger;
const auditLog = await getAuditLog(channel.guild, "CHANNEL_DELETE");
const audit = auditLog.entries