From 5d8ab8b769a75d06e039f217a85625de6538f958 Mon Sep 17 00:00:00 2001 From: PPTide <52575064+PPTide@users.noreply.github.com> Date: Mon, 19 Aug 2024 20:11:19 +0200 Subject: [PATCH] Remove magic numbers --- discord.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord.go b/discord.go index 972cf5b5..4ca85466 100644 --- a/discord.go +++ b/discord.go @@ -56,7 +56,7 @@ func discordInit() { webhooks, err = sess.ChannelWebhooks(Integrations.Discord.ChannelID) if err != nil { Log.Println("Error getting Discord webhooks:", err) - webhooks = make([]*discordgo.Webhook, 20) + webhooks = make([]*discordgo.Webhook, 0, maxWebhookCount) } } DiscordChan = make(chan DiscordMsg, 100)