From 1b12057e515c4f4b705894bb875cf8aa7b725947 Mon Sep 17 00:00:00 2001 From: samhza Date: Fri, 18 Jun 2021 03:15:02 -0400 Subject: [PATCH] discord: Make OverboundError.Error() have a pointer receiver (#232) --- discord/message_embed.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/message_embed.go b/discord/message_embed.go index 9874f68..255b47c 100644 --- a/discord/message_embed.go +++ b/discord/message_embed.go @@ -62,7 +62,7 @@ type OverboundError struct { var _ error = (*OverboundError)(nil) -func (e OverboundError) Error() string { +func (e *OverboundError) Error() string { if e.Thing == "" { return fmt.Sprintf("Overbound error: %d > %d", e.Count, e.Max) }