Skip to content

Commit

Permalink
fix(APIApplicationRoleConnection): metadata values can be numbers (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
almeidx committed Dec 16, 2022
1 parent c2bec62 commit 8df9f14
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion deno/payloads/v10/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,5 +271,5 @@ export interface APIApplicationRoleConnection {
/**
* Object mapping application role connection metadata keys to their `string`-ified value (max 100 characters) for the user on the platform a bot has connected
*/
metadata: Record<string, string>;
metadata: Record<string, string | number>;
}
2 changes: 1 addition & 1 deletion deno/payloads/v9/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,5 +271,5 @@ export interface APIApplicationRoleConnection {
/**
* Object mapping application role connection metadata keys to their `string`-ified value (max 100 characters) for the user on the platform a bot has connected
*/
metadata: Record<string, string>;
metadata: Record<string, string | number>;
}
2 changes: 1 addition & 1 deletion deno/rest/v10/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export interface RESTPutAPICurrentUserApplicationRoleConnectionJSONBody {
/**
* Object mapping application role connection metadata keys to their `string`-ified value (max 100 characters) for the user on the platform a bot has connected
*/
metadata?: Record<string, string>;
metadata?: Record<string, string | number>;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion deno/rest/v9/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export interface RESTPutAPICurrentUserApplicationRoleConnectionJSONBody {
/**
* Object mapping application role connection metadata keys to their `string`-ified value (max 100 characters) for the user on the platform a bot has connected
*/
metadata?: Record<string, string>;
metadata?: Record<string, string | number>;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion payloads/v10/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,5 +271,5 @@ export interface APIApplicationRoleConnection {
/**
* Object mapping application role connection metadata keys to their `string`-ified value (max 100 characters) for the user on the platform a bot has connected
*/
metadata: Record<string, string>;
metadata: Record<string, string | number>;
}
2 changes: 1 addition & 1 deletion payloads/v9/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,5 +271,5 @@ export interface APIApplicationRoleConnection {
/**
* Object mapping application role connection metadata keys to their `string`-ified value (max 100 characters) for the user on the platform a bot has connected
*/
metadata: Record<string, string>;
metadata: Record<string, string | number>;
}
2 changes: 1 addition & 1 deletion rest/v10/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export interface RESTPutAPICurrentUserApplicationRoleConnectionJSONBody {
/**
* Object mapping application role connection metadata keys to their `string`-ified value (max 100 characters) for the user on the platform a bot has connected
*/
metadata?: Record<string, string>;
metadata?: Record<string, string | number>;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion rest/v9/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export interface RESTPutAPICurrentUserApplicationRoleConnectionJSONBody {
/**
* Object mapping application role connection metadata keys to their `string`-ified value (max 100 characters) for the user on the platform a bot has connected
*/
metadata?: Record<string, string>;
metadata?: Record<string, string | number>;
}

/**
Expand Down

1 comment on commit 8df9f14

@vercel
Copy link

@vercel vercel bot commented on 8df9f14 Dec 16, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.