From e63b8b1e91d64d81ce5d3f407f9eb9693d1c46c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=ABl=20Kuijper?= <31251240+Joehoel@users.noreply.github.com> Date: Mon, 22 Feb 2021 12:03:18 +0100 Subject: [PATCH] Update mute.js Set TTL for redis value to `seconds` instead of `10` --- 20-Mute-Command/mute.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/20-Mute-Command/mute.js b/20-Mute-Command/mute.js index effe219..2770330 100644 --- a/20-Mute-Command/mute.js +++ b/20-Mute-Command/mute.js @@ -119,7 +119,7 @@ module.exports = (client) => { const redisKey = `${redisKeyPrefix}${id}-${guild.id}` if (seconds > 0) { - redisClient.set(redisKey, 'true', 'EX', 10) + redisClient.set(redisKey, 'true', 'EX', seconds) } else { redisClient.set(redisKey, 'true') }