From 045f4a70ac9a5252359212ada8fea2ad6d9d9c68 Mon Sep 17 00:00:00 2001 From: Jah-yee <166608075+Jah-yee@users.noreply.github.com> Date: Thu, 30 Jul 2026 15:48:23 +0800 Subject: [PATCH] fix: correct 'occured' to 'occurred' typo in HTTP error messages (oauth.go:60,72) --- oauth.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oauth.go b/oauth.go index c6a7af8..ac83b15 100644 --- a/oauth.go +++ b/oauth.go @@ -57,7 +57,7 @@ func (b *Bot) HTTPOAuthCallback(w http.ResponseWriter, r *http.Request) { return } else if err != nil { fmt.Printf("%T %v", err, err) - http.Error(w, "An error occured and the bot could not join the server.", http.StatusUnprocessableEntity) + http.Error(w, "An error occurred and the bot could not join the server.", http.StatusUnprocessableEntity) return } if guildInfo, ok := t.Extra("guild").(map[string]interface{}); ok { @@ -69,7 +69,7 @@ func (b *Bot) HTTPOAuthCallback(w http.ResponseWriter, r *http.Request) { return } else if err != nil { fmt.Printf("[ERR] Could not check banlist: %T %v", err, err) - http.Error(w, "An error occured and the bot may not have joined the server.", http.StatusUnprocessableEntity) + http.Error(w, "An error occurred and the bot may not have joined the server.", http.StatusUnprocessableEntity) return } } else {