Open Paillat-dev opened 1 month ago
Changelog
There. Maybe discord.RoleTags.is_integration()
should be removed too ? That would be breaking tho.
is_integration
is for roles managed by integrations, such as patreon/twitch
is_bot_managed
is for roles assigned to bots when added to a server by discord
is_premium_subscriber
is for the server booster role managed by discord
managed
is True
if any of the above is True
In my testing, with this logic, is_integration
works just fine and was never broken.
This should really be a documentation update, as the docs are misleading.
Do we cover the new tags also? Like for role subscription, server shop, etc
Do we cover the new tags also? Like for role subscription, server shop, etc
We do not, missing subscription_listing_id
, available_for_purchase
, guild_connections
Yeah that was a documentation issue. I will change that instead.
@plun1331 I might add the other tags too now that i'm here.
Go for it, shouldn't be too difficult
Could test guild_connections
but not the rest as I don't have the right setup.
By design, Role.is_integration()
is true if RoleTags.integration_id
is not None
. This means it will be True
for
https://gist.github.com/Lulalaby/a9ac5fcce5c182efd55167e6141c1542#premium-subscriber-tier
I changed the docstrings again to be clearer.
Done, Plun did it but then I did it with rebase so the history is clean
Thank u. I'm gonna review it within the next two days. I'm still traveling through Europe rn 😂
Choo Choo I'm a train
Before merge someone might want to test the premium guild stuff and what I couldn't test
do you have to force push everything
I like keeping a clean history
I like keeping a clean history
makes it harder to see what you changed, and it all gets squashed anyways
Summary
fixes: #2474 cc @Lumabots
Information
Checklist
type: ignore
comments were used, a comment is also left explaining why.