From 74b415f714d21d79a4319ddff157dd5c05bc0572 Mon Sep 17 00:00:00 2001 From: Fedor Lapshin Date: Sun, 6 Oct 2024 19:52:05 +0300 Subject: [PATCH] review changes --- restapi.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/restapi.go b/restapi.go index 71de84a80..4e335fa49 100644 --- a/restapi.go +++ b/restapi.go @@ -1456,7 +1456,7 @@ func (s *Session) GuildEmojiDelete(guildID, emojiID string, options ...RequestOp // ApplicationEmojis returns all emojis for the given application // appID : ID of the application -func (s *Session) ApplicationEmojis(appID string, options ...RequestOption) (emoji []*Emoji, err error) { +func (s *Session) ApplicationEmojis(appID string, options ...RequestOption) (emojis []*Emoji, err error) { body, err := s.RequestWithBucketID("GET", EndpointApplicationEmojis(appID), nil, EndpointApplicationEmojis(appID), options...) if err != nil { return @@ -1471,7 +1471,7 @@ func (s *Session) ApplicationEmojis(appID string, options ...RequestOption) (emo return } - emoji = temp.Items + emojis = temp.Items return }