aboutsummaryrefslogtreecommitdiff
path: root/src/tasks/unmute.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-06-28 18:54:18 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-06-28 18:54:18 -0400
commit6974a5859658b966954a59411a800223b7542df8 (patch)
tree9f1b4eae137d3253e1530bd30b78ab73b985c9ca /src/tasks/unmute.ts
parentb581073e0deb4f96510d72001513db64f3cc01ab (diff)
downloadtanzanite-6974a5859658b966954a59411a800223b7542df8.tar.gz
tanzanite-6974a5859658b966954a59411a800223b7542df8.tar.bz2
tanzanite-6974a5859658b966954a59411a800223b7542df8.zip
fix breaking changes and bump dependencies
Diffstat (limited to 'src/tasks/unmute.ts')
-rw-r--r--src/tasks/unmute.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tasks/unmute.ts b/src/tasks/unmute.ts
index 33cbd92..2dfa2ab 100644
--- a/src/tasks/unmute.ts
+++ b/src/tasks/unmute.ts
@@ -26,7 +26,7 @@ export default class UnmuteTask extends BushTask {
this.client.logger.verbose(`UnmuteTask`, `Queried mutes, found <<${rows.length}>> expired mutes.`);
for (const row of rows) {
const guild = this.client.guilds.cache.get(row.guild);
- const muteRole = (await Guild.findByPk(row.guild)).muteRole;
+ const muteRole = (await Guild.findByPk(row.guild))?.muteRole;
if (!guild) {
await row.destroy();
continue;