mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +01:00
cleanup: remove more left-over selfbot constants (#2761)
* misc: Remove left-over selfbot stuff * Forgot this
This commit is contained in:
@@ -291,8 +291,6 @@ exports.Events = {
|
||||
* * VOICE_STATE_UPDATE
|
||||
* * TYPING_START
|
||||
* * VOICE_SERVER_UPDATE
|
||||
* * RELATIONSHIP_ADD
|
||||
* * RELATIONSHIP_REMOVE
|
||||
* @typedef {string} WSEventType
|
||||
*/
|
||||
exports.WSEvents = keyMirror([
|
||||
@@ -376,158 +374,6 @@ exports.ActivityFlags = {
|
||||
PLAY: 1 << 5,
|
||||
};
|
||||
|
||||
exports.ExplicitContentFilterTypes = [
|
||||
'DISABLED',
|
||||
'NON_FRIENDS',
|
||||
'FRIENDS_AND_NON_FRIENDS',
|
||||
];
|
||||
|
||||
exports.UserSettingsMap = {
|
||||
/**
|
||||
* Automatically convert emoticons in your messages to emoji,
|
||||
* for example when you type `:-)` Discord will convert it to 😃
|
||||
* @name ClientUserSettings#convertEmoticons
|
||||
* @type {boolean}
|
||||
*/
|
||||
convert_emoticons: 'convertEmoticons',
|
||||
|
||||
/**
|
||||
* If new guilds should automatically disable DMs between you and its members
|
||||
* @name ClientUserSettings#defaultGuildsRestricted
|
||||
* @type {boolean}
|
||||
*/
|
||||
default_guilds_restricted: 'defaultGuildsRestricted',
|
||||
|
||||
/**
|
||||
* Automatically detect accounts from services like Steam and Blizzard when you open the Discord client
|
||||
* @name ClientUserSettings#detectPlatformAccounts
|
||||
* @type {boolean}
|
||||
*/
|
||||
detect_platform_accounts: 'detectPlatformAccounts',
|
||||
|
||||
/**
|
||||
* Developer Mode exposes context menu items helpful for people writing bots using the Discord API
|
||||
* @name ClientUserSettings#developerMode
|
||||
* @type {boolean}
|
||||
*/
|
||||
developer_mode: 'developerMode',
|
||||
|
||||
/**
|
||||
* Allow playback and usage of the `/tts` command
|
||||
* @name ClientUserSettings#enableTTSCommand
|
||||
* @type {boolean}
|
||||
*/
|
||||
enable_tts_command: 'enableTTSCommand',
|
||||
|
||||
/**
|
||||
* The theme of the client. Either `light` or `dark`
|
||||
* @name ClientUserSettings#theme
|
||||
* @type {string}
|
||||
*/
|
||||
theme: 'theme',
|
||||
|
||||
/**
|
||||
* Last status set in the client
|
||||
* @name ClientUserSettings#status
|
||||
* @type {PresenceStatus}
|
||||
*/
|
||||
status: 'status',
|
||||
|
||||
/**
|
||||
* Display currently running game as status message
|
||||
* @name ClientUserSettings#showCurrentGame
|
||||
* @type {boolean}
|
||||
*/
|
||||
show_current_game: 'showCurrentGame',
|
||||
|
||||
/**
|
||||
* Display images, videos, and lolcats when uploaded directly to Discord
|
||||
* @name ClientUserSettings#inlineAttachmentMedia
|
||||
* @type {boolean}
|
||||
*/
|
||||
inline_attachment_media: 'inlineAttachmentMedia',
|
||||
|
||||
/**
|
||||
* Display images, videos, and lolcats when posted as links in chat
|
||||
* @name ClientUserSettings#inlineEmbedMedia
|
||||
* @type {boolean}
|
||||
*/
|
||||
inline_embed_media: 'inlineEmbedMedia',
|
||||
|
||||
/**
|
||||
* Language the Discord client will use, as an RFC 3066 language identifier
|
||||
* @name ClientUserSettings#locale
|
||||
* @type {string}
|
||||
*/
|
||||
locale: 'locale',
|
||||
|
||||
/**
|
||||
* Display messages in compact mode
|
||||
* @name ClientUserSettings#messageDisplayCompact
|
||||
* @type {boolean}
|
||||
*/
|
||||
message_display_compact: 'messageDisplayCompact',
|
||||
|
||||
/**
|
||||
* Show emoji reactions on messages
|
||||
* @name ClientUserSettings#renderReactions
|
||||
* @type {boolean}
|
||||
*/
|
||||
render_reactions: 'renderReactions',
|
||||
|
||||
/**
|
||||
* Array of snowflake IDs for guilds, in the order they appear in the Discord client
|
||||
* @name ClientUserSettings#guildPositions
|
||||
* @type {Snowflake[]}
|
||||
*/
|
||||
guild_positions: 'guildPositions',
|
||||
|
||||
/**
|
||||
* Array of snowflake IDs for guilds which you will not recieve DMs from
|
||||
* @name ClientUserSettings#restrictedGuilds
|
||||
* @type {Snowflake[]}
|
||||
*/
|
||||
restricted_guilds: 'restrictedGuilds',
|
||||
|
||||
explicit_content_filter: function explicitContentFilter(type) { // eslint-disable-line func-name-matching
|
||||
/**
|
||||
* Safe direct messaging; force people's messages with images to be scanned before they are sent to you.
|
||||
* One of `DISABLED`, `NON_FRIENDS`, `FRIENDS_AND_NON_FRIENDS`
|
||||
* @name ClientUserSettings#explicitContentFilter
|
||||
* @type {string}
|
||||
*/
|
||||
return exports.ExplicitContentFilterTypes[type];
|
||||
},
|
||||
friend_source_flags: function friendSources(flags) { // eslint-disable-line func-name-matching
|
||||
/**
|
||||
* Who can add you as a friend
|
||||
* @name ClientUserSettings#friendSources
|
||||
* @type {Object}
|
||||
* @property {boolean} all Mutual friends and mutual guilds
|
||||
* @property {boolean} mutualGuilds Only mutual guilds
|
||||
* @property {boolean} mutualFriends Only mutual friends
|
||||
*/
|
||||
return {
|
||||
all: flags.all || false,
|
||||
mutualGuilds: flags.all ? true : flags.mutual_guilds || false,
|
||||
mutualFriends: flags.all ? true : flags.mutualFriends || false,
|
||||
};
|
||||
},
|
||||
};
|
||||
|
||||
/**
|
||||
* All flags users can have:
|
||||
* * STAFF
|
||||
* * PARTNER
|
||||
* * HYPESQUAD
|
||||
* @typedef {string} UserFlags
|
||||
*/
|
||||
exports.UserFlags = {
|
||||
STAFF: 1 << 0,
|
||||
PARTNER: 1 << 1,
|
||||
HYPESQUAD: 1 << 2,
|
||||
};
|
||||
|
||||
exports.ChannelTypes = {
|
||||
TEXT: 0,
|
||||
DM: 1,
|
||||
|
||||
Reference in New Issue
Block a user