mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 00:53:31 +01:00
Rewrite presence a little bit (#1853)
* such presence many good * Update PresenceStore.js * Update index.js * Update ClientPresenceStore.js * Update Presence.js * Update ClientPresenceStore.js * Update ClientUser.js * Update Presence.js * add timestamps and party * Update Presence.js * Update PresenceStore.js * Update ClientPresenceStore.js * Update ClientPresenceStore.js
This commit is contained in:
@@ -117,6 +117,8 @@ exports.Endpoints = {
|
||||
makeImageUrl(`${root}/icons/${guildID}/${hash}`, { format, size }),
|
||||
AppIcon: (clientID, hash, { format = 'webp', size } = {}) =>
|
||||
makeImageUrl(`${root}/app-icons/${clientID}/${hash}`, { size, format }),
|
||||
AppAsset: (clientID, hash, { format = 'webp', size } = {}) =>
|
||||
makeImageUrl(`${root}/app-assets/${clientID}/${hash}`, { size, format }),
|
||||
GDMIcon: (channelID, hash, format = 'webp', size) =>
|
||||
makeImageUrl(`${root}/channel-icons/${channelID}/${hash}`, { size, format }),
|
||||
Splash: (guildID, hash, format = 'webp', size) =>
|
||||
@@ -345,14 +347,14 @@ exports.MessageTypes = [
|
||||
];
|
||||
|
||||
/**
|
||||
* The type of a game of a users presence, e.g. `PLAYING`. Here are the available types:
|
||||
* The type of an activity of a users presence, e.g. `PLAYING`. Here are the available types:
|
||||
* * PLAYING
|
||||
* * STREAMING
|
||||
* * LISTENING
|
||||
* * WATCHING
|
||||
* @typedef {string} GameType
|
||||
* @typedef {string} ActivityType
|
||||
*/
|
||||
exports.GameTypes = [
|
||||
exports.ActivityTypes = [
|
||||
'PLAYING',
|
||||
'STREAMING',
|
||||
'LISTENING',
|
||||
|
||||
Reference in New Issue
Block a user