mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 01:23:31 +01:00
feat(Teams): backport support for teams (#3357)
* feat(Teams): backport support for teams
PR #3350
Commit: a22aabf6a8
* fix(TeamMember): fix name of client property
* refactor(OAuth2Application): make team nullable instead of optional
* typings(OAuth2Application): make team nullable instable of optional
* docs(OAuth2Application): deprecate and add an info to team property
This commit is contained in:
@@ -216,6 +216,7 @@ const Endpoints = exports.Endpoints = {
|
||||
AppAsset: (clientID, hash) => `${root}/app-assets/${clientID}/${hash}.png`,
|
||||
GDMIcon: (channelID, hash) => `${root}/channel-icons/${channelID}/${hash}.jpg?size=2048`,
|
||||
Splash: (guildID, hash) => `${root}/splashes/${guildID}/${hash}.jpg`,
|
||||
TeamIcon: (teamID, hash) => `${root}/team-icons/${teamID}/${hash}.jpg`,
|
||||
};
|
||||
},
|
||||
OAUTH2: {
|
||||
@@ -853,3 +854,16 @@ exports.DefaultMessageNotifications = [
|
||||
'ALL',
|
||||
'MENTIONS',
|
||||
];
|
||||
|
||||
/**
|
||||
* The value set for a team members's membership state:
|
||||
* * INVITED
|
||||
* * ACCEPTED
|
||||
* @typedef {string} MembershipStates
|
||||
*/
|
||||
exports.MembershipStates = [
|
||||
// They start at 1
|
||||
null,
|
||||
'INVITED',
|
||||
'ACCEPTED',
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user