fix: add event id to stage instance. Closes #2092

This commit is contained in:
Skillz4Killz
2022-03-20 13:57:00 +00:00
committed by GitHub
parent 7c6a35a3f8
commit e3e0f2b975
3 changed files with 4 additions and 2 deletions

View File

@@ -7,11 +7,11 @@ Discord API library for [Deno](https://deno.land)
Discordeno follows [semantic versioning](https://semver.org/)
<!-- TODO: add coverage back when it is stable -->
[![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.

View File

@@ -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
};
}

View File

@@ -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 {