diff options
author | 2023-06-20 09:30:53 +0100 | |
---|---|---|
committer | 2023-06-23 09:08:09 +0100 | |
commit | dac30248fd350cc4e31775a5afa57284df883565 (patch) | |
tree | 48e9a25e69e0d527b341258f9572059583b91fcf | |
parent | Bump sentry-sdk from 1.25.1 to 1.26.0 (#2655) (diff) |
Don't have interaction_owner as a class var
Having it as a class var means that it is shared with all instances of the class, which we definitely do not want.
-rw-r--r-- | bot/exts/info/subscribe.py | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/bot/exts/info/subscribe.py b/bot/exts/info/subscribe.py index c4f206a27..95d468e3f 100644 --- a/bot/exts/info/subscribe.py +++ b/bot/exts/info/subscribe.py @@ -61,16 +61,7 @@ log = get_logger(__name__) class RoleButtonView(discord.ui.View): - """ - A view that holds the list of SingleRoleButtons to show to the member. - - Attributes - __________ - interaction_owner: discord.Member - The member that initiated the interaction - """ - - interaction_owner: discord.Member + """A view that holds the list of SingleRoleButtons to show to the member.""" def __init__(self, member: discord.Member, assignable_roles: list[AssignableRole]): super().__init__(timeout=DELETE_MESSAGE_AFTER) |