From 00c3ed4b8afd8560e613835999f218ac03e4c5d0 Mon Sep 17 00:00:00 2001 From: diamondburned Date: Tue, 31 Jan 2023 00:13:50 -0800 Subject: [PATCH] discord: GuildNews -> GuildAnnouncement --- discord/channel.go | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/discord/channel.go b/discord/channel.go index e3bc3f1..b098d37 100644 --- a/discord/channel.go +++ b/discord/channel.go @@ -197,17 +197,17 @@ const ( // GuildCategory is an organizational category that contains up to 50 // channels. GuildCategory - // GuildNews is a channel that users can follow and crosspost into their - // own server. - GuildNews + // GuildAnnouncement is a channel that users can follow and crosspost into + // their own server. + GuildAnnouncement // GuildStore is a channel in which game developers can sell their game on // Discord. GuildStore _ _ _ - // GuildNewsThread is a temporary sub-channel within a GUILD_NEWS channel - GuildNewsThread + // GuildAnnouncementThread is a temporary sub-channel within a GUILD_NEWS channel + GuildAnnouncementThread // GuildPublicThread is a temporary sub-channel within a GUILD_TEXT // channel. GuildPublicThread @@ -223,6 +223,16 @@ const ( GuildForum ) +// GuildNews aliases to GuildAnnouncement. +// +// Deprecated: use GuildAnnouncement instead. +const GuildNews = GuildAnnouncement + +// GuildNewsThread aliases to GuildAnnouncementThread. +// +// Deprecated: use GuildAnnouncementThread instead. +const GuildNewsThread = GuildAnnouncementThread + // https://discord.com/developers/docs/resources/channel#overwrite-object type Overwrite struct { // ID is the role or user id.