From af129ffa02a0c70fab5b120be9f06703c40658ae Mon Sep 17 00:00:00 2001 From: Zeisen Date: Fri, 18 Dec 2020 04:40:11 +0900 Subject: [PATCH] Fixed webhook avatar not work --- include/discord/webhook.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/discord/webhook.inc b/include/discord/webhook.inc index dd532b8..2dabe46 100644 --- a/include/discord/webhook.inc +++ b/include/discord/webhook.inc @@ -96,11 +96,11 @@ methodmap DiscordWebHook < Handle { } public bool GetAvatar(char[] buffer, int maxlength) { - return this.GetDataString("icon_url", buffer, maxlength); + return this.GetDataString("avatar_url", buffer, maxlength); } public void SetAvatar(const char[] icon_url) { - this.UpdateDataObject("icon_url", json_string(icon_url)); + this.UpdateDataObject("avatar_url", json_string(icon_url)); } public bool GetContent(char[] buffer, int maxlength) {