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
1 changed files with 2 additions and 2 deletions

View File

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