mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-03-21 09:29:21 +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.
|
// Emoji is the API format of a regular Emoji, both Unicode or custom.
|
||||||
type Emoji = string
|
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.
|
// base.
|
||||||
// Unicode emojis should be directly passed to the function using Emoji.
|
// 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()
|
return name + ":" + id.String()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue