More non-blocking optimization
This commit is contained in:
parent
10e21d1120
commit
ac17cdc1bc
1 changed files with 2 additions and 1 deletions
|
@ -5,7 +5,7 @@ import { GuildSlowmodes } from "../data/GuildSlowmodes";
|
|||
import humanizeDuration from "humanize-duration";
|
||||
|
||||
export class SlowmodePlugin extends Plugin {
|
||||
public static pluginName = 'slowmode';
|
||||
public static pluginName = "slowmode";
|
||||
|
||||
protected slowmodes: GuildSlowmodes;
|
||||
protected clearInterval;
|
||||
|
@ -168,6 +168,7 @@ export class SlowmodePlugin extends Plugin {
|
|||
*/
|
||||
@d.event("messageCreate")
|
||||
@d.permission("affected")
|
||||
@d.nonBlocking()
|
||||
async onMessageCreate(msg: Message) {
|
||||
if (msg.author.bot) return;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue