mirror of
https://github.com/pieartsy/PluralFlux.git
synced 2026-04-16 17:45:28 +10:00
got propics working!!
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user