3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-11 20:55:01 +00:00

Add 'make_role_mentionable' and 'make_role_unmentionable' custom event actions

This commit is contained in:
Dragory 2020-11-22 14:14:17 +02:00
parent bc5455bf9f
commit 7839cc7da1
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
4 changed files with 90 additions and 1 deletions

View file

@ -7,6 +7,8 @@ import { addRoleAction } from "../actions/addRoleAction";
import { createCaseAction } from "../actions/createCaseAction";
import { moveToVoiceChannelAction } from "../actions/moveToVoiceChannelAction";
import { messageAction } from "../actions/messageAction";
import { makeRoleMentionableAction } from "../actions/makeRoleMentionableAction";
import { makeRoleUnmentionableAction } from "../actions/makeRoleUnmentionableAction";
export async function runEvent(
pluginData: GuildPluginData<CustomEventsPluginType>,
@ -24,6 +26,10 @@ export async function runEvent(
await moveToVoiceChannelAction(pluginData, action, values, event, eventData);
} else if (action.type === "message") {
await messageAction(pluginData, action, values);
} else if (action.type === "make_role_mentionable") {
await makeRoleMentionableAction(pluginData, action, values, event, eventData);
} else if (action.type === "make_role_unmentionable") {
await makeRoleUnmentionableAction(pluginData, action, values, event, eventData);
}
}
} catch (e) {