Skip to content

Commit

Permalink
feat(APIAttachment): add content_type
Browse files Browse the repository at this point in the history
  • Loading branch information
vladfrangu committed Apr 10, 2021
1 parent 238695b commit 2d432d1
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
6 changes: 6 additions & 0 deletions deno/payloads/v8/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -839,6 +839,12 @@ export interface APIAttachment {
* Name of file attached
*/
filename: string;
/**
* The attachment's media type
*
* See https://en.wikipedia.org/wiki/Media_type
*/
content_type?: string;
/**
* Size of file in bytes
*/
Expand Down
8 changes: 4 additions & 4 deletions deno/payloads/v8/interactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,10 +234,10 @@ export interface APIApplicationCommandInteractionData {
name: string;
options?: APIApplicationCommandInteractionDataOption[];
resolved?: {
users?: Record<Snowflake, APIUser>;
roles?: Record<Snowflake, APIRole>;
members?: Record<Snowflake, Omit<APIGuildMember, 'user' | 'deaf' | 'mute'> & { permissions: Permissions }>;
channels?: Record<Snowflake, Required<APIPartialChannel> & { permissions: Permissions }>;
users?: Record<string, APIUser>;
roles?: Record<string, APIRole>;
members?: Record<string, Omit<APIGuildMember, 'user' | 'deaf' | 'mute'> & { permissions: Permissions }>;
channels?: Record<string, Required<APIPartialChannel> & { permissions: Permissions }>;
};
}

Expand Down
6 changes: 6 additions & 0 deletions payloads/v8/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -839,6 +839,12 @@ export interface APIAttachment {
* Name of file attached
*/
filename: string;
/**
* The attachment's media type
*
* See https://en.wikipedia.org/wiki/Media_type
*/
content_type?: string;
/**
* Size of file in bytes
*/
Expand Down

0 comments on commit 2d432d1

Please sign in to comment.