mirror of
https://github.com/discordeno/discordeno.git
synced 2026-05-21 02:40:08 +00:00
fix: add event id to stage instance. Closes #2092
This commit is contained in:
@@ -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 -->
|
||||
|
||||
[](https://discord.com/invite/5vBgXk3UcZ)
|
||||

|
||||
[](https://codecov.io/gh/discordeno/discordeno)
|
||||
|
||||
|
||||
## Features
|
||||
|
||||
- **Secure & stable**: Discordeno is actively maintained to ensure great performance and convenience.
|
||||
|
||||
@@ -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
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user