diff --git a/chatOut.go b/chatOut.go index a4a3f0b..29702ad 100644 --- a/chatOut.go +++ b/chatOut.go @@ -111,8 +111,8 @@ func (k Keybase) ChatSendTextTeam(team, channel string, message ...string) (Chat return r.Result, nil } -// ChatSendReaction() sends a reaction to a user's message. -func (k Keybase) ChatSendReaction(user, reaction string, messageId int) (ChatOut, error) { +// ChatReact() sends a reaction to a user's message. +func (k Keybase) ChatReact(user, reaction string, messageId int) (ChatOut, error) { m := chatOut{} m.Method = "reaction" m.Params.Options.Channel.Name = user @@ -126,8 +126,8 @@ func (k Keybase) ChatSendReaction(user, reaction string, messageId int) (ChatOut return r.Result, nil } -// ChatSendReactionTeam() sends a reaction to a message on a team. -func (k Keybase) ChatSendReactionTeam(team, channel, reaction string, messageId int) (ChatOut, error) { +// ChatReactTeam() sends a reaction to a message on a team. +func (k Keybase) ChatReactTeam(team, channel, reaction string, messageId int) (ChatOut, error) { m := chatOut{} m.Method = "reaction" m.Params.Options.Channel.Name = team diff --git a/keybase.go b/keybase.go index e31824b..5783de1 100644 --- a/keybase.go +++ b/keybase.go @@ -12,8 +12,8 @@ type Keybase struct { type keybase interface { ChatSendText(user string, message ...string) (ChatOut, error) ChatSendTextTeam(team, channel, message string) (ChatOut, error) - ChatSendReaction(user, reaction string, messageId int) (ChatOut, error) - ChatSendReactionTeam(team, channel, reaction string, messageId int) (ChatOut, error) + ChatReact(user, reaction string, messageId int) (ChatOut, error) + ChatReactTeam(team, channel, reaction string, messageId int) (ChatOut, error) ChatDeleteMessage(user string, messageId int) (ChatOut, error) ChatDeleteMessageTeam(team, channel string, messageId int) (ChatOut, error) ChatList() ([]chatOutResultConversations, error)