From 94748299fe09144765ae361e24d485bad29fc339 Mon Sep 17 00:00:00 2001 From: Reece Donovan Date: Thu, 22 Feb 2024 15:00:48 +0000 Subject: [PATCH] Fixed spelling mistake --- api/announcements.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/announcements.go b/api/announcements.go index a54fd96..b648d93 100644 --- a/api/announcements.go +++ b/api/announcements.go @@ -55,8 +55,8 @@ func getAnnouncements(w http.ResponseWriter, r *http.Request) { announcements = cachedAnnouncements.([]*Announcement) } else { announcements = []*Announcement{} - publiChannelID := viper.Get("discord.channels").(*config.Channels).PublicAnnouncements - publicAnnounce, err := session.ChannelMessages(publiChannelID, 100, "", "", "") + publicChannelID := viper.Get("discord.channels").(*config.Channels).PublicAnnouncements + publicAnnounce, err := session.ChannelMessages(publicChannelID, 100, "", "", "") if err != nil { log.WithError(err).Error("Error querying announcements for api") return