Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions oauth.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down