mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-25 02:25:01 +00:00
Update backend/src/plugins/Automod/actions/changePerms.ts
Co-authored-by: Almeida <almeidx@pm.me>
This commit is contained in:
parent
d5d2ea314e
commit
236ba493fe
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue