diff --git a/src/discord/message_handling.go b/src/discord/message_handling.go index 57f05684..26842471 100644 --- a/src/discord/message_handling.go +++ b/src/discord/message_handling.go @@ -448,7 +448,7 @@ func downloadDiscordResource(ctx context.Context, url string) ([]byte, string, e content, err := io.ReadAll(res.Body) if err != nil { - panic(err) + return nil, "", err } return content, res.Header.Get("Content-Type"), nil