diff --git a/packages/bot/src/transformers/channel.ts b/packages/bot/src/transformers/channel.ts index a508a2e29..df81ec640 100644 --- a/packages/bot/src/transformers/channel.ts +++ b/packages/bot/src/transformers/channel.ts @@ -45,6 +45,7 @@ export function transformChannel(bot: Bot, payload: { channel: DiscordChannel } lastMessageId: payload.channel.last_message_id ? bot.transformers.snowflake(payload.channel.last_message_id) : undefined, ownerId: payload.channel.owner_id ? bot.transformers.snowflake(payload.channel.owner_id) : undefined, applicationId: payload.channel.application_id ? bot.transformers.snowflake(payload.channel.application_id) : undefined, + managed: payload.managed, parentId: payload.channel.parent_id ? bot.transformers.snowflake(payload.channel.parent_id) : undefined, memberCount: payload.channel.member_count, messageCount: payload.channel.message_count, diff --git a/packages/types/src/discord.ts b/packages/types/src/discord.ts index 19c90efdc..0aae9b0ea 100644 --- a/packages/types/src/discord.ts +++ b/packages/types/src/discord.ts @@ -703,6 +703,8 @@ export interface DiscordChannel { owner_id?: string /** Application id of the group DM creator if it is bot-created */ application_id?: string + /** For group DM channels: whether the channel is managed by an application via the `gdm.join` OAuth2 scope. */ + managed?: boolean /** For guild channels: Id of the parent category for a channel (each parent category can contain up to 50 channels), for threads: id of the text channel this thread was created */ parent_id?: string | null /** When the last pinned message was pinned. This may be null in events such as GUILD_CREATE when a message is not pinned. */