Documentation ¶
Index ¶
- type Fly
- func (f *Fly) CreateDM(ctx context.Context, id string) (*sigil.Channel, error)
- func (f *Fly) Get(ctx context.Context) (*sigil.User, error)
- func (f *Fly) GetConnections(ctx context.Context) ([]*sigil.Connection, error)
- func (f *Fly) GetGuilds(ctx context.Context, before, after string, limit int) ([]*sigil.Guild, error)
- func (f *Fly) LeaveGuild(ctx context.Context, id string) error
- func (f *Fly) Modify(ctx context.Context, opts *ModifyOptions) (*sigil.User, error)
- type ModifyOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fly ¶
type Fly struct {
// contains filtered or unexported fields
}
Fly is a resource for interacting with the current User.
func (*Fly) GetConnections ¶
GetConnections fetches the Connections of the current User.
func (*Fly) GetGuilds ¶
func (f *Fly) GetGuilds(ctx context.Context, before, after string, limit int) ([]*sigil.Guild, error)
GetGuilds returns a list of partial Guilds the current User is part of. Requires the `guilds` scope.
Both the `before` and `after` query parameters are snowflakes.
func (*Fly) LeaveGuild ¶
LeaveGuild has the current User leave a Guild.
type ModifyOptions ¶
type ModifyOptions struct { Username string `json:"username,omitempty"` Avatar null.String `json:"avatar,omitempty"` }
ModifyOptions is used to change the current User's settings.
Click to show internal directories.
Click to hide internal directories.