From 4b3137eb6cc3292185f5984c8897d4c64d6ff66b Mon Sep 17 00:00:00 2001 From: Jesper Handskemager Date: Wed, 21 Sep 2022 22:34:03 +0200 Subject: [PATCH] hotfix/Whops discord id's can be larger than 18 chars --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 881ca92..b9d30ac 100644 --- a/main.go +++ b/main.go @@ -147,7 +147,7 @@ func CreateToken(w http.ResponseWriter, r *http.Request) { vars := mux.Vars(r) discord := vars["discord"] - if len(discord) != 18 { + if len(discord) > 21 { fmt.Fprintf(w, "Bad request") return }