got propics working!!

This commit is contained in:
Aster Fialla
2026-02-14 00:20:36 -05:00
parent 0e05fd65d2
commit 9f2164ac98
3 changed files with 47 additions and 19 deletions

View File

@@ -49,7 +49,7 @@ async function getWebhook(api, channelId, name) {
wh.replaceMessage = async function (api, data, text, member) {
if (text.length > 0) {
const webhook = await wh.getOrCreateWebhook(api, data.channel_id);
await api.webhooks.execute(webhook.id, webhook.token, {content: text, username: member.displayname ?? member.name, propic: member.propic});
await api.webhooks.execute(webhook.id, webhook.token, {content: text, username: member.displayname ?? member.name, avatar_url: member.propic});
await api.channels.deleteMessage(data.channel_id, data.id);
}
else {