Documentation
¶
Overview ¶
Package slackclient is a small Slack client library used by matterircd (and usable by matterbridge), the equivalent of matterclient for Mattermost.
Index ¶
- type Client
- func (c *Client) Connected() bool
- func (c *Client) CurrentUserName() string
- func (c *Client) Disconnect() error
- func (c *Client) GetChannelName(channelID string) string
- func (c *Client) GetChannelUsers(channelID string) ([]*slack.User, error)
- func (c *Client) GetChannels() []slack.Channel
- func (c *Client) GetConversations() ([]slack.Channel, error)
- func (c *Client) GetMe() *slack.User
- func (c *Client) GetUser(userID string) *slack.User
- func (c *Client) GetUserFromMessage(rmsg *slack.MessageEvent) (*slack.User, error)
- func (c *Client) GetUserInfo(userID string) (*slack.User, error)
- func (c *Client) GetUsers() []slack.User
- func (c *Client) GetUsersInConversation(channelID string) ([]string, error)
- func (c *Client) IncomingEvents() <-chan slack.RTMEvent
- func (c *Client) InitUsers()
- func (c *Client) Invite(channelID, username string) error
- func (c *Client) IsChannelMember(channelID string) bool
- func (c *Client) IsOwnMessageEcho(userID, channelID, timestamp string) bool
- func (c *Client) JoinChannel(channelName string) (string, string, error)
- func (c *Client) Kick(channelID, username string) error
- func (c *Client) LeaveChannel(channelID string) error
- func (c *Client) Login() error
- func (c *Client) Logout() error
- func (c *Client) PostMessage(channelID, text string) (string, error)
- func (c *Client) SendDirectMessage(username, text string) (string, error)
- func (c *Client) SetLogAPICalls(level string)
- func (c *Client) SetLogLevel(level string)
- func (c *Client) SetStatus(status string) error
- func (c *Client) SetTopic(channelID, text string) error
- func (c *Client) TeamDomain() string
- func (c *Client) TeamID() string
- func (c *Client) TeamName() string
- func (c *Client) Topic(channelID string) string
- func (c *Client) UserID() string
- func (c *Client) UserName(id string) string
- type Credentials
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func New ¶
func New(cred Credentials) *Client
func (*Client) CurrentUserName ¶
func (*Client) Disconnect ¶
func (*Client) GetChannelName ¶
func (*Client) GetChannelUsers ¶
func (*Client) GetChannels ¶
func (*Client) GetUserFromMessage ¶
func (*Client) GetUsersInConversation ¶
func (*Client) IncomingEvents ¶
func (*Client) IsChannelMember ¶
func (*Client) IsOwnMessageEcho ¶
func (*Client) JoinChannel ¶
func (*Client) LeaveChannel ¶
func (*Client) SendDirectMessage ¶
func (*Client) SetLogAPICalls ¶
SetLogAPICalls sets the log level of the Slack API calls.
func (*Client) SetLogLevel ¶
SetLogLevel sets the log level of slackclient.
func (*Client) TeamDomain ¶
Click to show internal directories.
Click to hide internal directories.