|
|
@ -13,7 +13,7 @@ import ( |
|
|
|
func reqPass(w http.ResponseWriter, r *http.Request) { |
|
|
|
func reqPass(w http.ResponseWriter, r *http.Request) { |
|
|
|
username := r.FormValue("UserName") |
|
|
|
username := r.FormValue("UserName") |
|
|
|
var userID string |
|
|
|
var userID string |
|
|
|
g, err := dg.State.Guild(config.GuildID) |
|
|
|
g, err := dg.Guild(config.GuildID) |
|
|
|
if err == nil { |
|
|
|
if err == nil { |
|
|
|
for _, m := range g.Members { |
|
|
|
for _, m := range g.Members { |
|
|
|
if m.User.Username == "johndoe" { |
|
|
|
if m.User.Username == "johndoe" { |
|
|
|