You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fromtypingimportOptionaldefsystem_content(self) ->Optional[str]:
ifself.typeisMessageType.role_subscription_purchase:
ifnot (data:=self.role_subscription_data):
returnguild_name=f"**{self.guild.name}**"ifself.guildelseNoneifdata.total_months_subscribed>0:
action="renewed"ifdata.is_renewalelse"joined"return (
f"{self.author.name}{action} **{data.tier_name}** and has been a subscriber "f"of {guild_name} for {data.total_months_subscribed} "f"{'month'ifdata.total_months_subscribed==1else'months'}!"
)
elifdata.is_renewal:
returnf"{self.author.name} renewed **{data.tier_name}** in their {guild_name} membership!"else:
returnf"{self.author.name} joined **{data.tier_name}** as a subscriber of {guild_name}!"returnNone
Running ruff . --select RET505 --select RET502 raises RET505, but not RET502.
Reported on Discord.
The text was updated successfully, but these errors were encountered:
Given:
Running
ruff . --select RET505 --select RET502
raisesRET505
, but notRET502
.Reported on Discord.
The text was updated successfully, but these errors were encountered: