Skip to content

Commit

Permalink
Remove magic numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
PPTide committed Aug 19, 2024
1 parent 982cec1 commit 5d8ab8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discord.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5d8ab8b

Please sign in to comment.