@@ -359,6 +359,12 @@ pub enum Route<'a> {
359359 /// ID of the guild.
360360 guild_id : u64 ,
361361 } ,
362+ /// Returns a list of application role connection metadata objects for the
363+ /// given application.
364+ GetApplicationRoleConnectionMetadataRecords {
365+ /// The ID of the owner application.
366+ application_id : u64 ,
367+ } ,
362368 /// Route information to get a paginated list of audit logs in a guild.
363369 GetAuditLogs {
364370 /// The type of action to get audit logs for.
@@ -861,6 +867,12 @@ pub enum Route<'a> {
861867 /// Query to search by.
862868 query : & ' a str ,
863869 } ,
870+ /// Updates and returns a list of application role connection metadata
871+ /// objects for the given application.
872+ SetApplicationRoleConnectionMetadataRecords {
873+ /// The ID of the owner application.
874+ application_id : u64 ,
875+ } ,
864876 /// Route information to set global commands.
865877 SetGlobalCommands {
866878 /// The ID of the owner application.
@@ -1130,6 +1142,7 @@ impl<'a> Route<'a> {
11301142 | Self :: RemoveThreadMember { .. }
11311143 | Self :: UnpinMessage { .. } => Method :: Delete ,
11321144 Self :: GetActiveThreads { .. }
1145+ | Self :: GetApplicationRoleConnectionMetadataRecords { .. }
11331146 | Self :: GetAuditLogs { .. }
11341147 | Self :: GetAutoModerationRule { .. }
11351148 | Self :: GetBan { .. }
@@ -1259,6 +1272,7 @@ impl<'a> Route<'a> {
12591272 | Self :: CreateReaction { .. }
12601273 | Self :: JoinThread { .. }
12611274 | Self :: PinMessage { .. }
1275+ | Self :: SetApplicationRoleConnectionMetadataRecords { .. }
12621276 | Self :: SetGlobalCommands { .. }
12631277 | Self :: SetGuildCommands { .. }
12641278 | Self :: SyncTemplate { .. }
@@ -1329,6 +1343,10 @@ impl<'a> Route<'a> {
13291343 | Self :: SetGlobalCommands { application_id } => {
13301344 Path :: ApplicationCommand ( application_id)
13311345 }
1346+ Self :: GetApplicationRoleConnectionMetadataRecords { application_id }
1347+ | Self :: SetApplicationRoleConnectionMetadataRecords { application_id } => {
1348+ Path :: ApplicationRoleConnectionsMetadata ( application_id)
1349+ }
13321350 Self :: CreateGuild => Path :: Guilds ,
13331351 Self :: CreateGuildFromTemplate { template_code, .. }
13341352 | Self :: GetTemplate { template_code, .. } => {
@@ -1743,6 +1761,12 @@ impl Display for Route<'_> {
17431761
17441762 Ok ( ( ) )
17451763 }
1764+ Route :: GetApplicationRoleConnectionMetadataRecords { application_id }
1765+ | Route :: SetApplicationRoleConnectionMetadataRecords { application_id } => {
1766+ f. write_str ( "applications/" ) ?;
1767+ Display :: fmt ( application_id, f) ?;
1768+ f. write_str ( "/role-connections/metadata" )
1769+ }
17461770 Route :: CreateGuild => f. write_str ( "guilds" ) ,
17471771 Route :: CreateGuildCommand {
17481772 application_id,
0 commit comments