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)