mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-23 17:45:03 +00:00
Update backend/src/plugins/Automod/actions/changeRoles.ts
Co-authored-by: Almeida <almeidx@pm.me>
This commit is contained in:
parent
8e01cfb766
commit
ffb17755f2
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue