maybe minor update ?

This commit is contained in:
March 7th
2022-05-11 20:19:04 +07:00
parent 6d14015d1b
commit 8355a8e135
14 changed files with 213 additions and 1346 deletions

View File

@@ -239,6 +239,10 @@ exports.Events = {
GUILD_CREATE: 'guildCreate',
GUILD_DELETE: 'guildDelete',
GUILD_UPDATE: 'guildUpdate',
GUILD_APPLICATION_COMMANDS_UPDATE: 'guildApplicationCommandUpdate',
/**
* @private This event is not documented in the API.
*/
GUILD_UNAVAILABLE: 'guildUnavailable',
GUILD_MEMBER_ADD: 'guildMemberAdd',
GUILD_MEMBER_REMOVE: 'guildMemberRemove',
@@ -246,6 +250,9 @@ exports.Events = {
GUILD_MEMBER_AVAILABLE: 'guildMemberAvailable',
GUILD_MEMBERS_CHUNK: 'guildMembersChunk',
GUILD_MEMBER_LIST_UPDATE: 'guildMemberListUpdate',
/**
* @private This event is not documented in the API.
*/
GUILD_INTEGRATIONS_UPDATE: 'guildIntegrationsUpdate',
GUILD_ROLE_CREATE: 'roleCreate',
GUILD_ROLE_DELETE: 'roleDelete',
@@ -284,7 +291,13 @@ exports.Events = {
WEBHOOKS_UPDATE: 'webhookUpdate',
INTERACTION_CREATE: 'interactionCreate',
INTERACTION_SUCCESS: 'interactionSuccess',
/**
* @private This event is not documented in the API.
*/
INTERACTION_FAILED: 'interactionFailed',
/**
* @private This event is not documented in the API.
*/
ERROR: 'error',
WARN: 'warn',
DEBUG: 'debug',
@@ -308,8 +321,13 @@ exports.Events = {
GUILD_SCHEDULED_EVENT_USER_ADD: 'guildScheduledEventUserAdd',
GUILD_SCHEDULED_EVENT_USER_REMOVE: 'guildScheduledEventUserRemove',
RELATIONSHIP_ADD: 'relationshipAdd',
/**
* @private This event is not documented in the API.
*/
RELATIONSHIP_REMOVE: 'relationshipRemove',
/* Add */
/**
* @private This event is not documented in the API.
*/
UNHANDLED_PACKET: 'unhandledPacket',
};

View File

@@ -156,9 +156,7 @@ class Options extends null {
restSweepInterval: 60,
failIfNotExists: false,
userAgentSuffix: [],
presence: {
status: 'invisible',
},
presence: { status: 'invisible', since: 0, activities: [], afk: false },
sweepers: {},
ws: {
large_threshold: 50,
@@ -170,8 +168,25 @@ class Options extends null {
$os: 'Windows',
$browser: 'Discord Client',
$device: 'ASUS ROG Phone 5',
// Add
$os_version: '10',
$referrer: '',
$referring_domain: '',
$referrer_current: '',
$referring_domain_current: '',
$release_channel: 'stable',
$client_build_number: 127546,
$client_event_source: null,
},
// ? capabilities: 253,
version: 9,
client_state: {
guild_hashes: {},
highest_last_message_id: '0',
read_state_version: 0,
user_guild_settings_version: -1,
user_settings_version: -1,
},
},
http: {
headers: {