3
0
Fork 0
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:
Dragory 2020-11-22 14:59:02 +02:00
parent 7839cc7da1
commit e7efd48519
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
3 changed files with 46 additions and 0 deletions

View file

@ -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) {