feat(bot-discord): delete referenced message

This commit is contained in:
GramingFoxTeam
2023-08-19 18:04:15 +03:00
parent 8d5b68b9c5
commit 1e8533067b
3 changed files with 6 additions and 1 deletions

View File

@@ -27,5 +27,7 @@ export default {
});
exileMemberToChannel(targetMsg.author, interaction.channel, targetMsg.content, null, config);
await targetMsg.delete();
}
};

View File

@@ -25,5 +25,7 @@ export default {
});
exileMemberToChannel(referencedMsg.author, msg.channel, message, null, config, false);
await referencedMsg.delete();
}
}

View File

@@ -39,7 +39,8 @@ export default async function exileMemberToChannel(member, channel, message, rea
footer: {
text: 'ReVanced',
icon_url: channel.client.user.avatarURL()
}
},
color: 5150960
}
]
});