import { clientOptions } from '../utilities/ClientOptions' ; const Constants = require ( 'discord.js/src/util/Constants' ) ; const DQConstants = { ExplicitContentFilterTypes : [ 'DISABLED' , 'NON_FRIENDS' , 'FRIENDS_AND_NON_FRIENDS' ] , Events : { ... Constants . Events , MESSAGE_ACK : 'messageAck' , USER_GUILD_SETTINGS_UPDATE : 'userGuildSettingsUpdate' , USER_NOTE_UPDATE : 'userNoteUpdate' , USER_SETTINGS_UPDATE : 'userSettingsUpdate' , } , MessageNotificationTypes : [ 'EVERYTHING' , 'MENTIONS' , 'NOTHING' , 'INHERIT' ] , ShardEvents : { ... Constants . ShardEvents , ALL_READY : 'allReady' , } , UserChannelOverrideMap : { muted : 'muted' , message_notifications ( type ) { return DQConstants . MessageNotificationTypes [ type ] ; } , } , UserGuildSettingsMap : { mobile_push : 'mobilePush' , muted : 'muted' , suppress_everyone : 'suppressEveryone' , channel_overrides : 'channelOverrides' , message_notifications ( type ) { return DQConstants . MessageNotificationTypes [ type ] ; } , } , UserSettingsMap : { convert_emoticons : 'convertEmoticons' , custom_status : 'customStatus' , default_guilds_restricted : 'defaultGuildsRestricted' , detect_platform_accounts : 'detectPlatformAccounts' , developer_mode : 'developerMode' , enable_tts_command : 'enableTTSCommand' , theme : 'theme' , status : 'status' , show_current_game : 'showCurrentGame' , inline_attachment_media : 'inlineAttachmentMedia' , inline_embed_media : 'inlineEmbedMedia' , locale : 'locale' , message_display_compact : 'messageDisplayCompact' , render_reactions : 'renderReactions' , guild_folders : 'guildFolders' , guild_positions : 'guildPositions' , restricted_guilds : 'restrictedGuilds' , explicit_content_filter ( type ) { return DQConstants . ExplicitContentFilterTypes [ type ] ; } , friend_source_flags ( flags ) { return { all : flags . all || false , mutualGuilds : flags . all ? true : flags . mutual_guilds || false , mutualFriends : flags . all ? true : flags . mutualFriends || false , } ; } , } , UserAgent : `Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) discord-qt/${ clientOptions . ws . properties . client_version } Chrome/78.0.3904.130 Electron/7.3.2 Safari/537.36` , } ; Object . assign ( Constants , DQConstants ) ;