awaitlogMessage(LogLevel.WARN,"MessageIsMedia",`Redacting event from ${event['sender']} for posting an image/video. ${Permalinks.forEvent(roomId,event['event_id'],[newUserID(awaitmjolnir.client.getUserId()).domain])}`);
// Redact the event
if(!config.noop){
awaitmjolnir.client.redactEvent(roomId,event['event_id'],"Images/videos are not permitted here");
}else{
awaitlogMessage(LogLevel.WARN,"MessageIsMedia",`Tried to redact ${event['event_id']} in ${roomId} but Mjolnir is running in no-op mode`,roomId);