perf: use a memory cache for AutoReactions
This commit is contained in:
parent
31f18ba27f
commit
d09d6b776a
5 changed files with 24 additions and 3 deletions
|
@ -19,6 +19,7 @@ export const DisableAutoReactionsCmd = autoReactionsCmd({
|
|||
}
|
||||
|
||||
await pluginData.state.autoReactions.removeFromChannel(args.channelId);
|
||||
pluginData.state.cache.delete(args.channelId);
|
||||
sendSuccessMessage(pluginData, msg.channel, `Auto-reactions disabled in <#${args.channelId}>`);
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue