1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-09-29 21:58:57 +00:00

API: rename NewEmoji to NewCustomEmoji

This commit is contained in:
mavolin 2020-05-12 02:17:45 +02:00
parent d99b7448e5
commit ab140686c2
No known key found for this signature in database
GPG key ID: D8681218EDF216DF

View file

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