aboutsummaryrefslogtreecommitdiff
path: root/src/listeners
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-04-02 18:51:25 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-04-02 18:51:25 -0400
commit4fbc1e0f743e81e718762679c0d3e842c2a58ee9 (patch)
tree873cea77719e946a798283e545f7522ff56cd596 /src/listeners
parent47be8a310c0954b078fb4ea0ffd5cad2a5725a71 (diff)
downloadtanzanite-4fbc1e0f743e81e718762679c0d3e842c2a58ee9.tar.gz
tanzanite-4fbc1e0f743e81e718762679c0d3e842c2a58ee9.tar.bz2
tanzanite-4fbc1e0f743e81e718762679c0d3e842c2a58ee9.zip
feat(hl): add last talked cooldown
Diffstat (limited to 'src/listeners')
-rw-r--r--src/listeners/message/highlight.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/listeners/message/highlight.ts b/src/listeners/message/highlight.ts
index c3a6ce0..d7965c5 100644
--- a/src/listeners/message/highlight.ts
+++ b/src/listeners/message/highlight.ts
@@ -12,8 +12,9 @@ export default class HighlightListener extends BushListener {
public override async exec(...[message]: BushClientEvents['messageCreate']) {
if (!message.inGuild()) return;
if (message.author.bot || message.system) return;
- if (!((await message.guild.hasFeature('highlight')) && !message.author.isOwner())) return; // allows highlighting to be disabled on a guild-by-guild basis
+ if (!(await message.guild.hasFeature('highlight'))) return; // allows highlighting to be disabled on a guild-by-guild basis
+ client.highlightManager.updateLastTalked(message);
const res = client.highlightManager.checkMessage(message);
for (const [user, hl] of res.entries()) {