@@ -208,7 +208,7 @@ async def make_member(
208208 await ctx .defer (ephemeral = True )
209209
210210 async with ctx .typing ():
211- message = await self .perform_make_member (
211+ message : str = await self .perform_make_member (
212212 user = ctx .user , raw_group_member_id = raw_group_member_id
213213 )
214214
@@ -287,7 +287,7 @@ async def callback(self, interaction: discord.Interaction) -> None:
287287 )
288288 return
289289
290- message = await cog .perform_make_member (
290+ message : str = await cog .perform_make_member (
291291 user = interaction .user , raw_group_member_id = raw_student_id
292292 )
293293
@@ -300,15 +300,15 @@ class OpenMemberVerifyModalView(View):
300300 @override
301301 def __init__ (self , bot : "TeXBot" ) -> None :
302302 super ().__init__ (timeout = None )
303- self .bot = bot
303+ self .bot : TeXBot = bot
304304
305305 @discord .ui .button (
306306 label = "Verify" , style = discord .ButtonStyle .primary , custom_id = "verify_new_member"
307307 )
308308 async def verify_new_member_button_callback ( # type: ignore[misc]
309309 self , _ : discord .Button , interaction : discord .Interaction
310310 ) -> None :
311- await interaction .response .send_modal (MakeMemberModalActual (self .bot ))
311+ await interaction .response .send_modal (MakeMemberModalActual (bot = self .bot ))
312312
313313
314314class MakeMemberModalCommandCog (MakeMemberBaseCog ):
@@ -317,40 +317,40 @@ class MakeMemberModalCommandCog(MakeMemberBaseCog):
317317 @TeXBotBaseCog .listener ()
318318 async def on_ready (self ) -> None :
319319 """Add OpenMemberVerifyModalView to the bot's list of permanent views."""
320- self .bot .add_view (OpenMemberVerifyModalView (self .bot ))
320+ self .bot .add_view (OpenMemberVerifyModalView (bot = self .bot ))
321321
322322 async def _open_make_new_member_modal (
323323 self ,
324324 button_callback_channel : discord .TextChannel | discord .DMChannel ,
325325 ) -> None :
326326 await button_callback_channel .send (
327- content = "would you like to open the make member modal " ,
328- view = OpenMemberVerifyModalView (self .bot ),
327+ content = "Click below to verify membership! " ,
328+ view = OpenMemberVerifyModalView (bot = self .bot ),
329329 )
330330
331331 @discord .slash_command (
332- name = "make-member-modal" ,
332+ name = "send- make-member-modal" ,
333333 description = (
334- "prints a message with a button that allows users to open the make member modal, "
334+ "Sends a message with a button that allows users to open the make member modal. "
335335 ),
336336 )
337337 @CommandChecks .check_interaction_user_has_committee_role
338338 @CommandChecks .check_interaction_user_in_main_guild
339- async def make_member_modal (
339+ async def send_make_member_modal (
340340 self ,
341341 ctx : "TeXBotApplicationContext" ,
342342 ) -> None :
343343 """
344- Definition & callback response of the "make-member-modal" command.
344+ Definition & callback response of the "send- make-member-modal" command.
345345
346- The "make-member-modal" command prints a message with a button that allows users
346+ The "send- make-member-modal" command sends a message with a button that allows users
347347 to open the make member modal
348348 """
349349 await self ._open_make_new_member_modal (
350350 button_callback_channel = ctx .channel ,
351351 )
352352
353353 await ctx .respond (
354- content = "The make member modal has been opened in this channel." ,
354+ content = "The make member modal message has been sent in this channel." ,
355355 ephemeral = True ,
356356 )
0 commit comments