mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-16 22:21:51 +00:00
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";
|
import humanizeDuration from "humanize-duration";
|
||||||
|
|
||||||
export class SlowmodePlugin extends Plugin {
|
export class SlowmodePlugin extends Plugin {
|
||||||
public static pluginName = 'slowmode';
|
public static pluginName = "slowmode";
|
||||||
|
|
||||||
protected slowmodes: GuildSlowmodes;
|
protected slowmodes: GuildSlowmodes;
|
||||||
protected clearInterval;
|
protected clearInterval;
|
||||||
|
@ -168,6 +168,7 @@ export class SlowmodePlugin extends Plugin {
|
||||||
*/
|
*/
|
||||||
@d.event("messageCreate")
|
@d.event("messageCreate")
|
||||||
@d.permission("affected")
|
@d.permission("affected")
|
||||||
|
@d.nonBlocking()
|
||||||
async onMessageCreate(msg: Message) {
|
async onMessageCreate(msg: Message) {
|
||||||
if (msg.author.bot) return;
|
if (msg.author.bot) return;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue