mirror of
https://github.com/diamondburned/arikawa.git
synced 2024-11-29 10:12:57 +00:00
API: Fixed FormatEmojiAPI
This commit is contained in:
parent
126ab255cd
commit
743a8a8fd9
|
@ -15,7 +15,7 @@ func FormatEmojiAPI(id discord.Snowflake, name string) string {
|
|||
return name
|
||||
}
|
||||
|
||||
return id.String() + ":" + name
|
||||
return name + ":" + id.String()
|
||||
}
|
||||
|
||||
func (c *Client) Emojis(
|
||||
|
|
|
@ -39,15 +39,13 @@ var (
|
|||
WSBuffer = 10
|
||||
// WSError is the default error handler
|
||||
WSError = func(err error) { log.Println("Gateway error:", err) }
|
||||
// WSFatal is the default fatal handler, which is called when the Gateway
|
||||
// can't recover.
|
||||
WSFatal = func(err error) { log.Fatalln("Gateway failed:", err) }
|
||||
// WSExtraReadTimeout is the duration to be added to Hello, as a read
|
||||
// timeout for the websocket.
|
||||
WSExtraReadTimeout = time.Second
|
||||
// WSRetries controls the number of Reconnects before erroring out.
|
||||
WSRetries = 3
|
||||
|
||||
// WSDebug is used for extra debug logging. This is expected to behave
|
||||
// similarly to log.Println().
|
||||
WSDebug = func(v ...interface{}) {}
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue