fix typo in InviteTargetEmbeddedApplication and in some comments (#1211)
This commit is contained in:
parent
0feaae8f1b
commit
039e6855ed
4 changed files with 8 additions and 8 deletions
|
@ -46,7 +46,7 @@ func New(token string) (s *Session, err error) {
|
||||||
LastHeartbeatAck: time.Now().UTC(),
|
LastHeartbeatAck: time.Now().UTC(),
|
||||||
}
|
}
|
||||||
|
|
||||||
// Initilize the Identify Package with defaults
|
// Initialize the Identify Package with defaults
|
||||||
// These can be modified prior to calling Open()
|
// These can be modified prior to calling Open()
|
||||||
s.Identify.Compress = true
|
s.Identify.Compress = true
|
||||||
s.Identify.LargeThreshold = 250
|
s.Identify.LargeThreshold = 250
|
||||||
|
|
|
@ -90,7 +90,7 @@ func (v *VoiceConnection) log(msgL int, format string, a ...interface{}) {
|
||||||
msglog(msgL, 2, format, a...)
|
msglog(msgL, 2, format, a...)
|
||||||
}
|
}
|
||||||
|
|
||||||
// printJSON is a helper function to display JSON data in a easy to read format.
|
// printJSON is a helper function to display JSON data in an easy to read format.
|
||||||
/* NOT USED ATM
|
/* NOT USED ATM
|
||||||
func printJSON(body []byte) {
|
func printJSON(body []byte) {
|
||||||
var prettyJSON bytes.Buffer
|
var prettyJSON bytes.Buffer
|
||||||
|
|
2
state.go
2
state.go
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
// This file contains code related to state tracking. If enabled, state
|
// This file contains code related to state tracking. If enabled, state
|
||||||
// tracking will capture the initial READY packet and many other websocket
|
// tracking will capture the initial READY packet and many other websocket
|
||||||
// events and maintain an in-memory state of of guilds, channels, users, and
|
// events and maintain an in-memory state of guilds, channels, users, and
|
||||||
// so forth. This information can be accessed through the Session.State struct.
|
// so forth. This information can be accessed through the Session.State struct.
|
||||||
|
|
||||||
package discordgo
|
package discordgo
|
||||||
|
|
10
structs.go
10
structs.go
|
@ -59,12 +59,12 @@ type Session struct {
|
||||||
ShardCount int
|
ShardCount int
|
||||||
|
|
||||||
// Should state tracking be enabled.
|
// Should state tracking be enabled.
|
||||||
// State tracking is the best way for getting the the users
|
// State tracking is the best way for getting the users
|
||||||
// active guilds and the members of the guilds.
|
// active guilds and the members of the guilds.
|
||||||
StateEnabled bool
|
StateEnabled bool
|
||||||
|
|
||||||
// Whether or not to call event handlers synchronously.
|
// Whether or not to call event handlers synchronously.
|
||||||
// e.g false = launch event handlers in their own goroutines.
|
// e.g. false = launch event handlers in their own goroutines.
|
||||||
SyncEvents bool
|
SyncEvents bool
|
||||||
|
|
||||||
// Exposed but should not be modified by User.
|
// Exposed but should not be modified by User.
|
||||||
|
@ -75,7 +75,7 @@ type Session struct {
|
||||||
// Max number of REST API retries
|
// Max number of REST API retries
|
||||||
MaxRestRetries int
|
MaxRestRetries int
|
||||||
|
|
||||||
// Status stores the currect status of the websocket connection
|
// Status stores the current status of the websocket connection
|
||||||
// this is being tested, may stay, may go away.
|
// this is being tested, may stay, may go away.
|
||||||
status int32
|
status int32
|
||||||
|
|
||||||
|
@ -222,8 +222,8 @@ type InviteTargetType uint8
|
||||||
|
|
||||||
// Invite target types
|
// Invite target types
|
||||||
const (
|
const (
|
||||||
InviteTargetStream InviteTargetType = 1
|
InviteTargetStream InviteTargetType = 1
|
||||||
InviteTargetEmbeddedAppliction InviteTargetType = 2
|
InviteTargetEmbeddedApplication InviteTargetType = 2
|
||||||
)
|
)
|
||||||
|
|
||||||
// A Invite stores all data related to a specific Discord Guild or Channel invite.
|
// A Invite stores all data related to a specific Discord Guild or Channel invite.
|
||||||
|
|
Loading…
Reference in a new issue