mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-11 20:55:01 +00:00
Add 'set_channel_permission_overrides' custom event action
This commit is contained in:
parent
7839cc7da1
commit
e7efd48519
3 changed files with 46 additions and 0 deletions
|
@ -9,6 +9,7 @@ import { moveToVoiceChannelAction } from "../actions/moveToVoiceChannelAction";
|
|||
import { messageAction } from "../actions/messageAction";
|
||||
import { makeRoleMentionableAction } from "../actions/makeRoleMentionableAction";
|
||||
import { makeRoleUnmentionableAction } from "../actions/makeRoleUnmentionableAction";
|
||||
import { setChannelPermissionOverridesAction } from "../actions/setChannelPermissionOverrides";
|
||||
|
||||
export async function runEvent(
|
||||
pluginData: GuildPluginData<CustomEventsPluginType>,
|
||||
|
@ -30,6 +31,8 @@ export async function runEvent(
|
|||
await makeRoleMentionableAction(pluginData, action, values, event, eventData);
|
||||
} else if (action.type === "make_role_unmentionable") {
|
||||
await makeRoleUnmentionableAction(pluginData, action, values, event, eventData);
|
||||
} else if (action.type === "set_channel_permission_overrides") {
|
||||
await setChannelPermissionOverridesAction(pluginData, action, values, event, eventData);
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue