From e3e0f2b9750877217dc1298700d613b19a9a80d0 Mon Sep 17 00:00:00 2001 From: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com> Date: Sun, 20 Mar 2022 13:57:00 +0000 Subject: [PATCH] fix: add event id to stage instance. Closes #2092 --- README.md | 2 +- transformers/stageInstance.ts | 1 + types/discord.ts | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 90a106c46..63efb22db 100644 --- a/README.md +++ b/README.md @@ -7,11 +7,11 @@ Discord API library for [Deno](https://deno.land) Discordeno follows [semantic versioning](https://semver.org/) + [![Discord](https://img.shields.io/discord/785384884197392384?color=7289da&logo=discord&logoColor=dark)](https://discord.com/invite/5vBgXk3UcZ) ![Test](https://github.com/discordeno/discordeno/workflows/Test/badge.svg) [![Coverage](https://img.shields.io/codecov/c/gh/discordeno/discordeno)](https://codecov.io/gh/discordeno/discordeno) - ## Features - **Secure & stable**: Discordeno is actively maintained to ensure great performance and convenience. diff --git a/transformers/stageInstance.ts b/transformers/stageInstance.ts index 45a45d8f3..817b9885a 100644 --- a/transformers/stageInstance.ts +++ b/transformers/stageInstance.ts @@ -11,6 +11,7 @@ export function transformStageInstance( guildId: bot.transformers.snowflake(payload.guild_id), channelId: bot.transformers.snowflake(payload.channel_id), topic: payload.topic, + guildScheduledEventId: payload.guild_scheduled_event_id ? bot.transformers.snowflake(payload.guild_scheduled_event_id) : undefined }; } diff --git a/types/discord.ts b/types/discord.ts index 75b747232..33c2f9a82 100644 --- a/types/discord.ts +++ b/types/discord.ts @@ -781,13 +781,14 @@ export interface DiscordWelcomeScreenChannel { export interface DiscordStageInstance { /** The topic of the Stage instance (1-120 characters) */ topic: string; - /** The id of this Stage instance */ id: string; /** The guild id of the associated Stage channel */ guild_id: string; /** The id of the associated Stage channel */ channel_id: string; + /** The id of the scheduled event for this Stage instance */ + guild_scheduled_event_id?: string } export interface DiscordThreadMetadata {