Is there any way to notify about ADDITONAL boosts to a server via the bot? #10219
Unanswered
Florararie
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
So I already wrote a form of boost notification as a service in the
on_member_update
event like so-Basically attempts to see if
premium_since
changes from its previous value, and then proceeds to notify based on that after the event fires. This works fine.. for first time boosts, but as far as I can tell there's a few issues with it.Firstly: as far as I'm aware,
premium_since
never updates past the datetime object of that first initial boost. So checking against it wouldnt yield any further notifications since it doesnt change even with the user in question adding an additional boost.Secondly: Even if that did change, I'm not sure it would actually cause the
on_member_update
event to fire in the first place, since what I assume causes it to go through with that first boost is the addition of the booster role to their profile.So with those things in mind.. does anyone know of a method I could use to include additonal user boosts to that notification? (IE: user already boosted once, and then adds another boost to the server on top of that already existing boost).
Basically the only ideas I could think of is possibly using the
on_guild_update
event instead if that does fire when a new boost is supplied, then checking to see the number of boosts a user has and if it's higher than the cached value, it would send the notification (if that value is even available to be read). But I'm not too keen on this idea as it requires storing that information for those users and fetching them on each event update. Not entirely a problem, but just a headache to implement more than anything. So while annoying I'm not entirely opposed to that.The other would be to check for the system boost message and piggyback off of that. But that somewhat defeats the purpose of this as the person I'm helping with make it wanted it to be more personalized than the system message anyways, and has already turned it off 😅 (I could however convince them to turn it back on and supply the message to a private channel and keep the personalized one public)
Anyways with those thoughts out of the way, if anyone has any ideas I would be appreciative!! Thank you <3
(Also I am aware that there was a similar discussion here, but I just wanted to see if anything has changed since then or to get further clarification on the topic. Both sorry and thanks in advance!)
Beta Was this translation helpful? Give feedback.
All reactions