We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30a2878 commit 3948542Copy full SHA for 3948542
1 file changed
src/events.rs
@@ -94,7 +94,8 @@ impl serenity::all::RawEventHandler for EventHandler {
94
});
95
96
let mut timeout_map = TIMEOUT_MAP.lock().await;
97
- let timeout_count = timeout_map.entry(mention.id).or_insert(0);
+ let timeout_count =
98
+ timeout_map.entry(event.message.author.id).or_insert(0);
99
*timeout_count += 1;
100
let timeout_duration = match *timeout_count {
101
1 | 2 => 30,
0 commit comments