Skip to content

Commit

Permalink
feat: add managed field to ChannelType.GroupDM (#698)
Browse files Browse the repository at this point in the history
  • Loading branch information
panley01 committed Feb 15, 2023
1 parent 41b31eb commit 8477deb
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions deno/payloads/v10/channel.ts
Expand Up @@ -199,6 +199,10 @@ export interface APIGroupDMChannel extends Omit<APIDMChannelBase<ChannelType.Gro
* The id of the last message sent in this channel (may not point to an existing or valid message)
*/
last_message_id?: Snowflake | null;
/**
* Whether the channel is managed by an OAuth2 application
*/
managed?: boolean;
}

export interface APIThreadChannel
Expand Down
4 changes: 4 additions & 0 deletions deno/payloads/v9/channel.ts
Expand Up @@ -195,6 +195,10 @@ export interface APIGroupDMChannel extends Omit<APIDMChannelBase<ChannelType.Gro
* ID of the DM creator
*/
owner_id?: Snowflake;
/**
* Whether the channel is managed by an OAuth2 application
*/
managed?: boolean;
}

export interface APIThreadChannel
Expand Down
4 changes: 4 additions & 0 deletions payloads/v10/channel.ts
Expand Up @@ -199,6 +199,10 @@ export interface APIGroupDMChannel extends Omit<APIDMChannelBase<ChannelType.Gro
* The id of the last message sent in this channel (may not point to an existing or valid message)
*/
last_message_id?: Snowflake | null;
/**
* Whether the channel is managed by an OAuth2 application
*/
managed?: boolean;
}

export interface APIThreadChannel
Expand Down
4 changes: 4 additions & 0 deletions payloads/v9/channel.ts
Expand Up @@ -195,6 +195,10 @@ export interface APIGroupDMChannel extends Omit<APIDMChannelBase<ChannelType.Gro
* ID of the DM creator
*/
owner_id?: Snowflake;
/**
* Whether the channel is managed by an OAuth2 application
*/
managed?: boolean;
}

export interface APIThreadChannel
Expand Down

0 comments on commit 8477deb

Please sign in to comment.