mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-02-11 05:52:58 +00:00
API: rename NewEmoji to NewCustomEmoji
This commit is contained in:
parent
d99b7448e5
commit
ab140686c2
|
@ -8,10 +8,10 @@ import (
|
|||
// Emoji is the API format of a regular Emoji, both Unicode or custom.
|
||||
type Emoji = string
|
||||
|
||||
// NewEmoji creates a new Emoji using a custom guild emoji as
|
||||
// NewCustomEmoji creates a new Emoji using a custom guild emoji as
|
||||
// base.
|
||||
// Unicode emojis should be directly passed to the function using Emoji.
|
||||
func NewEmoji(id discord.Snowflake, name string) Emoji {
|
||||
func NewCustomEmoji(id discord.Snowflake, name string) Emoji {
|
||||
return name + ":" + id.String()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue