File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -93,7 +93,10 @@ async def member_colour_select(
9393 if not ctx .interaction .user :
9494 await self .command_send_error (
9595 ctx = ctx ,
96- message = "Cannot assign colour role when interaction user was not available." ,
96+ message = (
97+ "Cannot assign colour role when "
98+ "interaction user was not available."
99+ ),
97100 )
98101 return
99102
@@ -133,7 +136,7 @@ async def member_colour_select(
133136 await ctx .respond (
134137 "You are not a member of the main guild. "
135138 "Please join the main guild to use this command."
136- f"\n { settings [" PURCHASE_MEMBERSHIP_URL" ]} " ,
139+ f"\n { settings [' PURCHASE_MEMBERSHIP_URL' ]} " ,
137140 ephemeral = True ,
138141 )
139142 return
@@ -150,12 +153,17 @@ async def member_colour_select(
150153 if roles_to_remove :
151154 await interaction_member .remove_roles (
152155 * roles_to_remove ,
153- reason = f'{ interaction_member } used TeX-Bot slash-command "/select-colour-role".' ,
156+ reason = (
157+ f'{ interaction_member } used TeX-Bot '
158+ f'slash-command "/select-colour-role".'
159+ ),
154160 )
155161
156162 await interaction_member .add_roles (
157163 role_to_add ,
158- reason = f'{ interaction_member } used TeX-Bot slash-command "/select-colour-role".'
164+ reason = (
165+ f'{ interaction_member } used TeX-Bot slash-command "/select-colour-role".'
166+ ),
159167 )
160168
161169 await ctx .respond (
Original file line number Diff line number Diff line change 2222 GuildDoesNotExistError ,
2323 MemberRoleDoesNotExistError ,
2424 RoleDoesNotExistError ,
25+ RoleNotFoundInMainGuildError ,
2526 RolesChannelDoesNotExistError ,
2627 RulesChannelDoesNotExistError ,
27- RoleNotFoundInMainGuildError ,
2828)
2929
3030if TYPE_CHECKING :
You can’t perform that action at this time.
0 commit comments