@@ -557,6 +557,31 @@ declare namespace Eris {
557557 systemChannelID : string ;
558558 verificationLevel ?: number ;
559559 }
560+ interface DiscoveryCategory {
561+ id : number ;
562+ name : {
563+ default : string ;
564+ localizations ?: { [ lang : string ] : string } ;
565+ } ;
566+ is_primary : boolean ;
567+ }
568+ interface DiscoveryMetadata {
569+ guild_id : string ;
570+ primary_category_id : number ;
571+ keywords : string [ ] | null ;
572+ emoji_discoverability_enabled : boolean ;
573+ category_ids : number [ ] ;
574+ }
575+ interface DiscoveryOptions {
576+ primaryCategoryID ?: string ;
577+ keywords ?: string [ ] ;
578+ emojiDiscoverabilityEnabled ?: boolean ;
579+ reason ?: string ;
580+ }
581+ interface DiscoverySubcategoryResponse {
582+ guild_id : string ;
583+ category_id : number ;
584+ }
560585 interface GetPruneOptions {
561586 days ?: number ;
562587 includeRoles ?: string [ ] ;
@@ -1243,6 +1268,7 @@ declare namespace Eris {
12431268 constructor ( token : string , options ?: ClientOptions ) ;
12441269 acceptInvite ( inviteID : string ) : Promise < Invite < "withoutCount" > > ;
12451270 addGroupRecipient ( groupID : string , userID : string ) : Promise < void > ;
1271+ addGuildDiscoverySubcategory ( guildID : string , categoryID : string , reason ?: string ) : Promise < DiscoverySubcategoryResponse > ;
12461272 addGuildMemberRole ( guildID : string , memberID : string , roleID : string , reason ?: string ) : Promise < void > ;
12471273 /** @deprecated */
12481274 addMessageReaction ( channelID : string , messageID : string , reaction : string , userID : string ) : Promise < void > ;
@@ -1358,6 +1384,7 @@ declare namespace Eris {
13581384 deleteChannel ( channelID : string , reason ?: string ) : Promise < void > ;
13591385 deleteChannelPermission ( channelID : string , overwriteID : string , reason ?: string ) : Promise < void > ;
13601386 deleteGuild ( guildID : string ) : Promise < void > ;
1387+ deleteGuildDiscoverySubcategory ( guildID : string , categoryID : string , reason ?: string ) : Promise < void > ;
13611388 deleteGuildEmoji ( guildID : string , emojiID : string , reason ?: string ) : Promise < void > ;
13621389 deleteGuildIntegration ( guildID : string , integrationID : string ) : Promise < void > ;
13631390 deleteGuildTemplate ( guildID : string , code : string ) : Promise < GuildTemplate > ;
@@ -1387,6 +1414,7 @@ declare namespace Eris {
13871414 ) : Promise < void > ;
13881415 editChannelPosition ( channelID : string , position : number ) : Promise < void > ;
13891416 editGuild ( guildID : string , options : GuildOptions , reason ?: string ) : Promise < Guild > ;
1417+ editGuildDiscovery ( guildID : string , options ?: DiscoveryOptions ) : Promise < DiscoveryMetadata > ;
13901418 editGuildEmoji (
13911419 guildID : string ,
13921420 emojiID : string ,
@@ -1429,11 +1457,13 @@ declare namespace Eris {
14291457 getChannel ( channelID : string ) : AnyChannel ;
14301458 getChannelInvites ( channelID : string ) : Promise < Invite [ ] > ;
14311459 getChannelWebhooks ( channelID : string ) : Promise < Webhook [ ] > ;
1460+ getDiscoveryCategories ( ) : Promise < DiscoveryCategory [ ] > ;
14321461 getDMChannel ( userID : string ) : Promise < PrivateChannel > ;
14331462 getGateway ( ) : Promise < { url : string } > ;
14341463 getGuildAuditLogs ( guildID : string , limit ?: number , before ?: string , actionType ?: number , userID ?: string ) : Promise < GuildAuditLog > ;
14351464 getGuildBan ( guildID : string , userID : string ) : Promise < { reason ?: string ; user : User } > ;
14361465 getGuildBans ( guildID : string ) : Promise < { reason ?: string ; user : User } [ ] > ;
1466+ getGuildDiscovery ( guildID : string ) : Promise < DiscoveryMetadata > ;
14371467 /** @deprecated */
14381468 getGuildEmbed ( guildID : string ) : Promise < Widget > ;
14391469 getGuildIntegrations ( guildID : string ) : Promise < GuildIntegration [ ] > ;
@@ -1543,6 +1573,7 @@ declare namespace Eris {
15431573 syncGuildTemplate ( guildID : string , code : string ) : Promise < GuildTemplate > ;
15441574 unbanGuildMember ( guildID : string , userID : string , reason ?: string ) : Promise < void > ;
15451575 unpinMessage ( channelID : string , messageID : string ) : Promise < void > ;
1576+ validateDiscoverySearchTerm ( term : string ) : Promise < { valid : boolean } > ;
15461577 on : ClientEvents < this> ;
15471578 toString ( ) : string ;
15481579 }
@@ -1665,11 +1696,42 @@ declare namespace Eris {
16651696 removeRecipient ( userID : string ) : Promise < void > ;
16661697 }
16671698
1699+ interface DiscoveryMetadata {
1700+ guild_id : string ;
1701+ primary_category_id : number ;
1702+ keywords : string [ ] | null ;
1703+ emoji_discoverability_enabled : boolean ;
1704+ category_ids : number [ ] ;
1705+ }
1706+
1707+ interface DiscoveryOptions {
1708+ primaryCategoryID ?: string ;
1709+ keywords ?: string [ ] ;
1710+ emojiDiscoverabilityEnabled ?: boolean ;
1711+ reason ?: string ;
1712+ }
1713+
1714+ interface DiscoveryCategory {
1715+ id : number ;
1716+ name : {
1717+ default : string ;
1718+ localizations ?: { [ lang : string ] : string } ;
1719+ } ;
1720+ is_primary : boolean ;
1721+ }
1722+
1723+ interface DiscoverySubcategoryResponse {
1724+ guild_id : string ;
1725+ category_id : number ;
1726+ }
1727+
16681728 export class Guild extends Base {
16691729 afkChannelID : string | null ;
16701730 afkTimeout : number ;
1731+ applicationID : string | null ;
16711732 approximateMemberCount ?: number ;
16721733 approximatePresenceCount ?: number ;
1734+ autoRemoved ?: boolean ;
16731735 banner : string | null ;
16741736 bannerURL : string | null ;
16751737 channels : Collection < AnyGuildChannel > ;
@@ -1678,6 +1740,7 @@ declare namespace Eris {
16781740 description : string | null ;
16791741 discoverySplash : string | null ;
16801742 discoverySplashURL : string | null ;
1743+ emojiCount ?: number ;
16811744 emojis : Emoji [ ] ;
16821745 explicitContentFilter : number ;
16831746 features : string [ ] ;
@@ -1697,6 +1760,8 @@ declare namespace Eris {
16971760 preferredLocale : string ;
16981761 premiumSubscriptionCount ?: number ;
16991762 premiumTier : number ;
1763+ primaryCategory ?: DiscoveryCategory ;
1764+ primaryCategoryID ?: number ;
17001765 publicUpdatesChannelID : string ;
17011766 region : string ;
17021767 roles : Collection < Role > ;
@@ -1713,6 +1778,7 @@ declare namespace Eris {
17131778 widgetChannelID ?: string | null ;
17141779 widgetEnabled ?: boolean | null ;
17151780 constructor ( data : BaseData , client : Client ) ;
1781+ addDiscoverySubcategory ( categoryID : string , reason ?: string ) : Promise < DiscoverySubcategoryResponse > ;
17161782 addMemberRole ( memberID : string , roleID : string , reason ?: string ) : Promise < void > ;
17171783 banMember ( userID : string , deleteMessageDays ?: number , reason ?: string ) : Promise < void > ;
17181784 createChannel ( name : string ) : Promise < TextChannel > ;
@@ -1738,6 +1804,7 @@ declare namespace Eris {
17381804 createRole ( options : RoleOptions | Role , reason ?: string ) : Promise < Role > ;
17391805 createTemplate ( name : string , description ?: string | null ) : Promise < GuildTemplate > ;
17401806 delete ( ) : Promise < void > ;
1807+ deleteDiscoverySubcategory ( categoryID : string , reason ?: string ) : Promise < void > ;
17411808 deleteEmoji ( emojiID : string , reason ?: string ) : Promise < void > ;
17421809 deleteIntegration ( integrationID : string ) : Promise < void > ;
17431810 deleteRole ( roleID : string ) : Promise < void > ;
@@ -1748,6 +1815,7 @@ declare namespace Eris {
17481815 dynamicSplashURL ( format ?: ImageFormat , size ?: number ) : string ;
17491816 dynamicDiscoverySplashURL ( format ?: ImageFormat , size ?: number ) : string ;
17501817 edit ( options : GuildOptions , reason ?: string ) : Promise < Guild > ;
1818+ editDiscovery ( options ?: DiscoveryOptions ) : Promise < DiscoveryMetadata > ;
17511819 editEmoji ( emojiID : string , options : { name : string ; roles ?: string [ ] } , reason ?: string ) : Promise < Emoji > ;
17521820 editIntegration ( integrationID : string , options : IntegrationOptions ) : Promise < void > ;
17531821 editMember ( memberID : string , options : MemberOptions , reason ?: string ) : Promise < void > ;
@@ -1760,6 +1828,7 @@ declare namespace Eris {
17601828 getAuditLogs ( limit ?: number , before ?: string , actionType ?: number , userID ?: string ) : Promise < GuildAuditLog > ;
17611829 getBan ( userID : string ) : Promise < { reason ?: string ; user : User } > ;
17621830 getBans ( ) : Promise < { reason ?: string ; user : User } [ ] > ;
1831+ getDiscovery ( ) : Promise < DiscoveryMetadata > ;
17631832 /** @deprecated */
17641833 getEmbed ( ) : Promise < Widget > ;
17651834 getIntegrations ( ) : Promise < GuildIntegration > ;
0 commit comments