some small tweaks

pull/8/head
pineafan 3 years ago
parent c634e2bc18
commit e7cccc02a0
No known key found for this signature in database
GPG Key ID: 0AEF25BAA0FB1C74

@ -32,7 +32,7 @@
"force-dev": "rm -rf dist && eslint . --fix; tsc-suppress && node --experimental-json-modules --enable-source-maps dist/index.js", "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": "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-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": { "repository": {
"type": "git", "type": "git",

@ -98,9 +98,6 @@ const callback = async (interaction: CommandInteraction): Promise<unknown> => {
] ]
}); });
} }
role = role as Discord.Role;
ping = ping as Discord.Role;
channel = channel as Discord.TextChannel;
const options = {}; const options = {};
if (role) options.role = renderRole(role); if (role) options.role = renderRole(role);
if (ping) options.ping = renderRole(ping); if (ping) options.ping = renderRole(ping);

@ -4,7 +4,7 @@ export const event = "channelDelete";
export async function callback(client, channel) { export async function callback(client, channel) {
const { getAuditLog, log, NucleusColors, entry, renderDelta, renderUser } = const { getAuditLog, log, NucleusColors, entry, renderDelta, renderUser } =
channel.client.logger; client.logger;
const auditLog = await getAuditLog(channel.guild, "CHANNEL_DELETE"); const auditLog = await getAuditLog(channel.guild, "CHANNEL_DELETE");
const audit = auditLog.entries const audit = auditLog.entries

Loading…
Cancel
Save