Documentation
¶
Index ¶
- type Client
- func (c Client) Close() error
- func (c Client) GetChannelChar(ctx context.Context, channelID corde.Snowflake) (discord.MediaCharacter, error)
- func (c Client) GetInteractionCount(ctx context.Context, channelID corde.Snowflake) (int64, error)
- func (c Client) IncrementInteractionCount(ctx context.Context, channelID corde.Snowflake) error
- func (c Client) RemoveChannelChar(ctx context.Context, channelID corde.Snowflake) error
- func (c Client) ResetInteractionCount(ctx context.Context, channelID corde.Snowflake) error
- func (c Client) SetChannelChar(ctx context.Context, channelID corde.Snowflake, char discord.MediaCharacter) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a cache client. It is currently implemented through redis.
func (Client) GetChannelChar ¶
func (c Client) GetChannelChar(ctx context.Context, channelID corde.Snowflake) (discord.MediaCharacter, error)
GetChannelChar gets the currently dropped char in the channel
func (Client) GetInteractionCount ¶
GetInteractionCount gets the interaction count for the given channel/user combo
func (Client) IncrementInteractionCount ¶
IncrementInteractionCount increments the interaction count for the given channel/user combo
func (Client) RemoveChannelChar ¶
RemoveChannelChar removes the currently dropped char in the channel
func (Client) ResetInteractionCount ¶
ResetInteractionCount resets the interaction count for the given channel/user combo
func (Client) SetChannelChar ¶
func (c Client) SetChannelChar(ctx context.Context, channelID corde.Snowflake, char discord.MediaCharacter) error
SetChannelChar sets the currently dropped char in the channel
Click to show internal directories.
Click to hide internal directories.