From ca1b9186f261c52bcbfa3996db59faab030b9971 Mon Sep 17 00:00:00 2001 From: vim2meta Date: Sun, 19 Nov 2017 10:10:17 -0500 Subject: [PATCH 1/8] Update event.go --- event.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/event.go b/event.go index 3a03f46..bba396c 100644 --- a/event.go +++ b/event.go @@ -6,7 +6,7 @@ type EventHandler interface { Type() string // Handle is called whenever an event of Type() happens. - // It is the recievers responsibility to type assert that the interface + // It is the receivers responsibility to type assert that the interface // is the expected struct. Handle(*Session, interface{}) } From 7086a1f2a9ed9770683af980447d0058709de68e Mon Sep 17 00:00:00 2001 From: vim2meta Date: Sun, 19 Nov 2017 10:11:09 -0500 Subject: [PATCH 2/8] Update logging.go --- logging.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logging.go b/logging.go index 270299e..6460b35 100644 --- a/logging.go +++ b/logging.go @@ -42,7 +42,7 @@ var Logger func(msgL, caller int, format string, a ...interface{}) // msgL : LogLevel of the message // caller : 1 + the number of callers away from the message source // format : Printf style message format -// a ... : comma seperated list of values to pass +// a ... : comma separated list of values to pass func msglog(msgL, caller int, format string, a ...interface{}) { if Logger != nil { From d4e2b50ce4f7738c213ab80d50309933c4061385 Mon Sep 17 00:00:00 2001 From: vim2meta Date: Sun, 19 Nov 2017 10:12:21 -0500 Subject: [PATCH 3/8] Update restapi.go --- restapi.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/restapi.go b/restapi.go index 3ab9164..276ab7f 100644 --- a/restapi.go +++ b/restapi.go @@ -1206,7 +1206,7 @@ func (s *Session) GuildEmbedEdit(guildID string, enabled bool, channelID string) // Functions specific to Discord Channels // ------------------------------------------------------------------------------------------------ -// Channel returns a Channel strucutre of a specific Channel. +// Channel returns a Channel structure of a specific Channel. // channelID : The ID of the Channel you want returned. func (s *Session) Channel(channelID string) (st *Channel, err error) { body, err := s.RequestWithBucketID("GET", EndpointChannel(channelID), nil, EndpointChannel(channelID)) From 74a0038b630f29f84926ca82e781c66440ee16bd Mon Sep 17 00:00:00 2001 From: vim2meta Date: Sun, 19 Nov 2017 10:13:04 -0500 Subject: [PATCH 4/8] Update restapi.go --- restapi.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/restapi.go b/restapi.go index 276ab7f..a16a743 100644 --- a/restapi.go +++ b/restapi.go @@ -1478,7 +1478,7 @@ func (s *Session) ChannelMessageDelete(channelID, messageID string) (err error) } // ChannelMessagesBulkDelete bulk deletes the messages from the channel for the provided messageIDs. -// If only one messageID is in the slice call channelMessageDelete funciton. +// If only one messageID is in the slice call channelMessageDelete function. // If the slice is empty do nothing. // channelID : The ID of the channel for the messages to delete. // messages : The IDs of the messages to be deleted. A slice of string IDs. A maximum of 100 messages. From 0e42acc5f52be00891fbb431142c3ce355a274f5 Mon Sep 17 00:00:00 2001 From: vim2meta Date: Sun, 19 Nov 2017 10:13:54 -0500 Subject: [PATCH 5/8] Update structs.go --- structs.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/structs.go b/structs.go index e24c9a8..03974cb 100644 --- a/structs.go +++ b/structs.go @@ -203,7 +203,7 @@ func (e *Emoji) APIName() string { return e.ID } -// VerificationLevel type defination +// VerificationLevel type definition type VerificationLevel int // Constants for VerificationLevel levels from 0 to 3 inclusive @@ -395,7 +395,7 @@ type Settings struct { DeveloperMode bool `json:"developer_mode"` } -// Status type defination +// Status type definition type Status string // Constants for Status with the different current available status From 86557619ba85bf24c8935198f73af842d9e160bb Mon Sep 17 00:00:00 2001 From: vim2meta Date: Sun, 19 Nov 2017 10:14:45 -0500 Subject: [PATCH 6/8] Update voice.go --- voice.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/voice.go b/voice.go index d68d0e2..3bbf621 100644 --- a/voice.go +++ b/voice.go @@ -68,7 +68,7 @@ type VoiceConnection struct { voiceSpeakingUpdateHandlers []VoiceSpeakingUpdateHandler } -// VoiceSpeakingUpdateHandler type provides a function defination for the +// VoiceSpeakingUpdateHandler type provides a function definition for the // VoiceSpeakingUpdate event type VoiceSpeakingUpdateHandler func(vc *VoiceConnection, vs *VoiceSpeakingUpdate) @@ -246,7 +246,7 @@ type voiceOP2 struct { } // WaitUntilConnected waits for the Voice Connection to -// become ready, if it does not become ready it retuns an err +// become ready, if it does not become ready it returns an err func (v *VoiceConnection) waitUntilConnected() error { v.log(LogInformational, "called") @@ -857,7 +857,7 @@ func (v *VoiceConnection) reconnect() { } if v.session.DataReady == false || v.session.wsConn == nil { - v.log(LogInformational, "cannot reconenct to channel %s with unready session", v.ChannelID) + v.log(LogInformational, "cannot reconnect to channel %s with unready session", v.ChannelID) continue } From 1033558fcf19894f107d22b596bf03f08e38260d Mon Sep 17 00:00:00 2001 From: vim2meta Date: Sun, 19 Nov 2017 10:15:13 -0500 Subject: [PATCH 7/8] Update wsapi.go --- wsapi.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wsapi.go b/wsapi.go index 425dbf3..de66f69 100644 --- a/wsapi.go +++ b/wsapi.go @@ -673,7 +673,7 @@ func (s *Session) onVoiceServerUpdate(st *VoiceServerUpdate) { voice.GuildID = st.GuildID voice.Unlock() - // Open a conenction to the voice server + // Open a connection to the voice server err := voice.open() if err != nil { s.log(LogError, "onVoiceServerUpdate voice.open, %s", err) From 396e868b36f7f92da671b87cd4c165591210d487 Mon Sep 17 00:00:00 2001 From: vim2meta Date: Sun, 19 Nov 2017 10:15:52 -0500 Subject: [PATCH 8/8] Update main.go --- examples/appmaker/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/appmaker/main.go b/examples/appmaker/main.go index 286fe16..5581dd9 100644 --- a/examples/appmaker/main.go +++ b/examples/appmaker/main.go @@ -79,7 +79,7 @@ func main() { ap.Name = Name ap, err = dg.ApplicationCreate(ap) if err != nil { - fmt.Println("error creating new applicaiton,", err) + fmt.Println("error creating new application,", err) return }