fix(util): return ref to loginResponse struct
This commit is contained in:
parent
56b4f74dff
commit
512db258d5
1 changed files with 2 additions and 2 deletions
|
|
@ -142,13 +142,13 @@ func TOTP(s *discordgo.Session, code, ticket string) (*loginResponse, error) {
|
|||
return nil, err
|
||||
}
|
||||
|
||||
var lr *loginResponse
|
||||
var lr loginResponse
|
||||
err = json.Unmarshal(resp, &lr)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return lr, nil
|
||||
return &lr, nil
|
||||
}
|
||||
|
||||
// HasPermission returns a boolean representing whether the provided user has given permissions or not.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue