Skip to content

ClientUserSettingManager

classe · Source

Manages API methods for users and stores their cache.

Extends: BaseManager

Properties

addFriendFrom

nullable

addFriendFrom: object

WHO CAN ADD YOU AS A FRIEND ? Source

locale

nullable

locale: string

The user's chosen language option Source

activityDisplay

nullable

activityDisplay: boolean

Show playing status for detected/added games Setting => ACTIVITY SETTINGS => Activity Status => Display current activity as a status message Source

allowDMsFromGuild

nullable

allowDMsFromGuild: boolean

Allow DMs from guild members by default on guild join Source

displayImage

nullable

displayImage: boolean

Display images and video when uploaded directly Source

linkedImageDisplay

nullable

linkedImageDisplay: boolean

Display images and video when linked Source

autoplayGIF

nullable

autoplayGIF: boolean

Play GIFs without hovering over them Setting => APP SETTINGS => Accessibility => Automatically play GIFs when Discord is focused. Source

nullable

previewLink: boolean

Show embeds and preview website links pasted into chat Source

animatedEmoji

nullable

animatedEmoji: boolean

Play animated emoji without hovering over them Setting => APP SETTINGS => Accessibility => Play Animated Emojis Source

allowTTS

nullable

allowTTS: boolean

Enable /tts command and playback Setting => APP SETTINGS => Accessibility => Text-to-speech => Allow playback Source

compactMode

nullable

compactMode: boolean

Use compact mode Setting => APP SETTINGS => Appearance => Message Display => Compact Mode Source

convertEmoticons

nullable

convertEmoticons: boolean

Convert "old fashioned" emoticons to emojis Setting => APP SETTINGS => Text & Images => Emoji => Convert Emoticons Source

DMScanLevel

nullable

DMScanLevel: number

Content filter level

  • 0: Off
  • 1: Friends excluded
  • 2: Scan everyone Source

theme

nullable

theme: string

Client theme Setting => APP SETTINGS => Appearance => Theme

developerMode

nullable

developerMode: boolean

Show the option to copy ids in right click menus Source

afkTimeout

nullable

afkTimeout: number

How many seconds being idle before the user is marked as "AFK"; this handles when push notifications are sent Source

stickerAnimationMode

nullable

stickerAnimationMode: number

When stickers animate

  • 0: Always
  • 1: On hover/focus
  • 2: Never Source

showEmojiReactions

nullable

showEmojiReactions: boolean

Display reactions Setting => APP SETTINGS => Text & Images => Emoji => Show emoji reactions Source

disableDMfromGuilds

disableDMfromGuilds: Collection<Snowflake, Guild>

Disable Direct Message from servers Source

raw

raw: Object

Raw data Source

client

readonly

client: Client

The client that instantiated this Manager Source

Methods

_patch

private

_patch(data: Object)

Patch data file https://luna.gitlab.io/discord-unofficial-docs/docs/user_settingsParameters

NameTypeDescription
dataObjectRaw Data to patch
Source

edit

async

async edit(data: any)

Edit data Parameters

NameTypeDescription
dataanyData to edit
Source

toggleCompactMode

toggleCompactMode(): Promise<this>

Toggle compact mode Returns: Promise<this>Source

setTheme

setTheme(value: string): Promise<this>

Discord Theme Parameters

NameTypeDescription
valuestringTheme to set (dark

Returns: Promise<this>Source

setCustomStatus

setCustomStatus(options: CustomStatus | CustomStatusOption): Promise<this>

Set custom status Parameters

NameTypeDescription
optionsCustomStatus | CustomStatusOptionCustomStatus

Returns: Promise<this>Source

restrictedGuilds

restrictedGuilds(status: boolean): Promise

Restricted guilds setting Parameters

NameTypeDescription
statusbooleanRestricted status

Returns: PromiseSource

addRestrictedGuild

addRestrictedGuild(guildId: GuildIDResolve): Promise

Add a guild to the list of restricted guilds. Parameters

NameTypeDescription
guildIdGuildIDResolveThe guild to add

Returns: PromiseSource

removeRestrictedGuild

removeRestrictedGuild(guildId: GuildIDResolve): Promise

Remove a guild from the list of restricted guilds. Parameters

NameTypeDescription
guildIdGuildIDResolveThe guild to remove

Returns: PromiseSource

See also

Unofficial software. Not affiliated with or supported by Discord.