client

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 9, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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
}

func New

func New(token string) (*Client, error)
func (c *Client) CreateParmalink(ctx context.Context, channel, messageTs string) (string, error)

func (*Client) GetChannelIDByName

func (c *Client) GetChannelIDByName(ctx context.Context, channel string) (string, error)

func (*Client) GetHistory

func (c *Client) GetHistory(ctx context.Context, msgChan chan slack.Msg, channel, duration, latest, oldest string) error
func (c *Client) GetPermalink(ctx context.Context, channel, messageTs string) (string, error)

func (*Client) GetUserNameByID

func (c *Client) GetUserNameByID(ctx context.Context, uID string) string

func (*Client) HumanizeMessage

func (c *Client) HumanizeMessage(ctx context.Context, in string) string

func (*Client) HumanizeTimestamp

func (c *Client) HumanizeTimestamp(in string) string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL