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:
parent
bc5455bf9f
commit
7839cc7da1
4 changed files with 90 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue