fix(tags): user_cooldown now applies per-user, not per-tag
This commit is contained in:
parent
319461285f
commit
2fe92ff76d
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ export async function onMessageCreate(pluginData: GuildPluginData<TagsPluginType
|
||||||
|
|
||||||
if (config.user_cooldown) {
|
if (config.user_cooldown) {
|
||||||
const delay = convertDelayStringToMS(String(config.user_cooldown), "s");
|
const delay = convertDelayStringToMS(String(config.user_cooldown), "s");
|
||||||
cooldowns.push([`tags-user-${tagResult.tagName}`, delay]);
|
cooldowns.push([`tags-user-${msg.user_id}`, delay]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (config.global_cooldown) {
|
if (config.global_cooldown) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue