Documentation
¶
Index ¶
- type Entity
- func (e *Entity) ChangeGuildOwner(ctx context.Context, id, ownerId int64) error
- func (e *Entity) CreateGuild(ctx context.Context, id int64, name string, ownerId, permissions int64) error
- func (e *Entity) DeleteGuild(ctx context.Context, id int64) error
- func (e *Entity) GetGuildById(ctx context.Context, id int64) (model.Guild, error)
- func (e *Entity) GetGuildsList(ctx context.Context, ids []int64) ([]model.Guild, error)
- func (e *Entity) SetGuildIcon(ctx context.Context, id, icon int64) error
- func (e *Entity) SetGuildPermissions(ctx context.Context, id int64, permissions int64) error
- func (e *Entity) SetGuildPublic(ctx context.Context, id int64, public bool) error
- func (e *Entity) SetSystemMessagesChannel(ctx context.Context, id int64, channelId *int64) error
- func (e *Entity) UpdateGuild(ctx context.Context, id int64, name *string, icon *int64, public *bool, ...) error
- type Guild
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entity ¶
type Entity struct {
// contains filtered or unexported fields
}
func (*Entity) ChangeGuildOwner ¶
func (*Entity) CreateGuild ¶
func (*Entity) GetGuildById ¶
func (*Entity) GetGuildsList ¶
func (*Entity) SetGuildIcon ¶
func (*Entity) SetGuildPermissions ¶
func (*Entity) SetGuildPublic ¶
func (*Entity) SetSystemMessagesChannel ¶ added in v1.5.0
type Guild ¶
type Guild interface {
GetGuildById(ctx context.Context, id int64) (model.Guild, error)
CreateGuild(ctx context.Context, id int64, name string, ownerId, permissions int64) error
DeleteGuild(ctx context.Context, id int64) error
SetGuildIcon(ctx context.Context, id, icon int64) error
SetGuildPublic(ctx context.Context, id int64, public bool) error
ChangeGuildOwner(ctx context.Context, id, ownerId int64) error
GetGuildsList(ctx context.Context, ids []int64) ([]model.Guild, error)
SetGuildPermissions(ctx context.Context, id int64, permissions int64) error
UpdateGuild(ctx context.Context, id int64, name *string, icon *int64, public *bool, permissions *int64) error
SetSystemMessagesChannel(ctx context.Context, id int64, channelId *int64) error
}
Click to show internal directories.
Click to hide internal directories.