From ed6f57d6e661db3413e0fdf02e7d9a9929997793 Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 25 Jul 2019 12:23:15 -0400 Subject: [PATCH] Cleanup some variable names --- chat.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/chat.go b/chat.go index b9cb197..30d7b2f 100644 --- a/chat.go +++ b/chat.go @@ -135,14 +135,14 @@ func (c Chat) Send(message ...string) (ChatAPI, error) { } // Edit edits a previously sent chat message -func (c Chat) Edit(messageId int, message ...string) (ChatAPI, error) { +func (c Chat) Edit(messageID int, message ...string) (ChatAPI, error) { m := ChatAPI{ Params: ¶ms{}, } m.Method = "edit" m.Params.Options.Channel = c.Channel m.Params.Options.Message.Body = strings.Join(message, " ") - m.Params.Options.MessageID = messageId + m.Params.Options.MessageID = messageID r, err := chatAPIOut(c.keybase.Path, m) if err != nil { @@ -152,14 +152,14 @@ func (c Chat) Edit(messageId int, message ...string) (ChatAPI, error) { } // React sends a reaction to a message. -func (c Chat) React(messageId int, reaction string) (ChatAPI, error) { +func (c Chat) React(messageID int, reaction string) (ChatAPI, error) { m := ChatAPI{ Params: ¶ms{}, } m.Method = "reaction" m.Params.Options.Channel = c.Channel m.Params.Options.Message.Body = reaction - m.Params.Options.MessageID = messageId + m.Params.Options.MessageID = messageID r, err := chatAPIOut(c.keybase.Path, m) if err != nil { @@ -169,13 +169,13 @@ func (c Chat) React(messageId int, reaction string) (ChatAPI, error) { } // Delete deletes a chat message -func (c Chat) Delete(messageId int) (ChatAPI, error) { +func (c Chat) Delete(messageID int) (ChatAPI, error) { m := ChatAPI{ Params: ¶ms{}, } m.Method = "delete" m.Params.Options.Channel = c.Channel - m.Params.Options.MessageID = messageId + m.Params.Options.MessageID = messageID r, err := chatAPIOut(c.keybase.Path, m) if err != nil {