From dece68594d0ac6d797212f53fb5f33403d1e2751 Mon Sep 17 00:00:00 2001 From: Gregory Rudolph Date: Wed, 2 Dec 2020 09:21:00 -0500 Subject: [PATCH] Get userID from username --- auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth.go b/auth.go index f7e6858..1131a0e 100644 --- a/auth.go +++ b/auth.go @@ -13,7 +13,7 @@ import ( func reqPass(w http.ResponseWriter, r *http.Request) { username := r.FormValue("UserName") var userID string - g, err := dg.State.Guild(config.GuildID) + g, err := dg.Guild(config.GuildID) if err == nil { for _, m := range g.Members { if m.User.Username == "johndoe" {