3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-25 18:25:03 +00:00

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

Co-authored-by: Almeida <almeidx@pm.me>
This commit is contained in:
metal 2021-12-10 17:08:29 +00:00 committed by GitHub
parent d5d2ea314e
commit 236ba493fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,7 +41,7 @@ export const ChangePermsAction = automodAction({
const channelId = actionConfig.channel ? await renderChannel(actionConfig.channel) : null;
const role = await pluginData.guild.roles.fetch(target);
if (!role) {
const member = await pluginData.guild.members.fetch(target);
const member = await pluginData.guild.members.fetch(target).catch(noop);
if (!member) return;
}