Discord.Net icon indicating copy to clipboard operation
Discord.Net copied to clipboard

Support Channel_Pins_Update and Webhooks_Update events

Open dukeofsussex opened this issue 5 years ago • 4 comments

Neither are great events due to how little data they provide (pretty much only the channel id), but it would still be nice to have.

dukeofsussex avatar Feb 27 '20 10:02 dukeofsussex

CHANNEL_PINS_UPDATE was discussed in #149. Unsure about WEBHOOKS_UPDATE, as it only provides guild_id and channel_id. Page @AntiTcb for opinions.

Still34 avatar May 05 '20 02:05 Still34

The CHANNEL_PINS_UPDATE event has "evolved" since that PR back in 2016 and now provides more data than just a timestamp.

dukeofsussex avatar May 05 '20 09:05 dukeofsussex

I can see an utility for WEBHOOKS_UPDATE, it would be possible to GetWebhooksAsync with the channel that is passed and manually check what had changed (like if someone deleted a webhook your bot needed).

But not for CHANNEL_PINS_UPDATED, when you pin and unpin, it'll also fire MESSAGE_UPDATED that contains a lot more useful data about the message etc.

SubZero0 avatar May 16 '20 23:05 SubZero0

Could WEBHOOKS_UPDATE be implemented then please? I specifically have a use for this due to having webhook urls publicly used in a api; at which people tend to send delete to; an auto recreate I could make would be nice.

Yes, I'm aware there's better solutions than a webhook, I'm just lazy.

MistressPlague avatar May 31 '21 19:05 MistressPlague