3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-23 09:35:02 +00:00

Update backend/src/plugins/Automod/actions/changeRoles.ts

Co-authored-by: Almeida <almeidx@pm.me>
This commit is contained in:
metal 2021-09-08 14:21:48 +01:00 committed by GitHub
parent 8e01cfb766
commit ffb17755f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,10 +33,10 @@ export const ChangeRolesAction = automodAction({
return;
}
const rolesToAssign: string[] = [];
const rolesWeCannotAssign: string[] = [];
const rolesToRemove: string[] = [];
const rolesWeCannotRemove: string[] = [];
const rolesToAssign: Snowflake[] = [];
const rolesWeCannotAssign: Snowflake[] = [];
const rolesToRemove: Snowflake[] = [];
const rolesWeCannotRemove: Snowflake[] = [];
for (const roleId of actionConfig.add) {
if (canAssignRole(pluginData.guild, me, roleId)) {
rolesToAssign.push(roleId);