import { ActivityType , Client , ClientOptions , Presence } from 'discord.js' ; export class CustomClient extends Client { constructor ( clientOptions ) { super ( clientOptions ) ; } public setPresence ( type , name , url ) { return this . user ?. setPresence ( { activities : [ { type : type as any , name , url , } , ] , } ) ; } }