import { Constants , DQConstants , MessageNotificationType } from 'discord.js' ; /**
 * A wrapper around the ClientUser's channel overrides.
 */ export class ClientUserChannelOverride { muted ? : boolean ; messageNotifications ? : MessageNotificationType ; constructor ( data ) { this . patch ( data ) ; } patch ( data ) { for ( const [ key , value ] of Object . entries ( ( Constants as DQConstants ) . UserChannelOverrideMap ) ) { if ( data . hasOwnProperty . call ( key ) ) { if ( typeof value === 'function' ) { this [ value . name ] = value ( data [ key ] ) ; } else { this [ value ] = data [ key ] ; } } } } }