package
module
Version:
v0.0.0-...-3377a85
Opens a new window with list of versions in this module.
Published: Mar 25, 2022
License: AGPL-3.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Auth struct {
AccessToken string `json:"access_token"`
ExpiresIn int `json:"expires_in"`
RefreshToken string `json:"refresh_token"`
}
type Guild struct {
AccessToken string `json:"access_token"`
RefreshToken string `json:"refresh_token"`
ExpiresIn int `json:"expires_in"`
GuildID GuildID `json:"guild"`
}
type GuildID struct {
ID string `json:"id"`
}
type Token struct {
ExpiresAt int64 `datastore:"expiresAt"`
AccessToken string `datastore:"accessToken"`
RefreshToken string `datastore:"refreshToken"`
}
type TokenResponse struct {
UserID string `json:"userID"`
Username string `json:"username"`
Discriminator string `json:"discriminator"`
Avatar string `json:"avatar"`
Token int64 `json:"token"`
AccessToken string `json:"accessToken"`
}
type User struct {
Token int64 `json:"token"`
UserID string `json:"userID"`
}
type UserPerms []struct {
Permissions string `json:"permissions"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.