import { MessageEmbed } from 'discord.js' ; import type ReknownClient from '../structures/client' ; import type { Guild , User } from 'discord.js' ; function sendLog ( client , guild , user ) { const embed = new MessageEmbed ( ) . addField ( 'User' , user . tag ) . setColor ( client . config . embedColor ) . setFooter ( `ID: ${ user . id }` ) . setThumbnail ( user . displayAvatarURL ( { size : 512 } ) ) . setTimestamp ( ) . setTitle ( 'Member Unbanned' ) ; client . functions . sendLog ( client , embed , guild ) ; } export async function run ( client , guild , user ) { if ( ! guild . available ) return ; sendLog ( client , guild , user ) ; }