1
0
Fork 0
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:
diamondburned (Forefront) 2020-03-22 15:23:29 -07:00
parent 126ab255cd
commit 743a8a8fd9
2 changed files with 3 additions and 5 deletions

View file

@ -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(

View file

@ -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{}) {}
)