1616 fetch_community_group_members_count ,
1717 is_id_a_community_group_member ,
1818)
19- from utils .tex_bot import TeXBot
2019
2120if TYPE_CHECKING :
2221 from collections .abc import Sequence
@@ -234,8 +233,8 @@ async def member_count(self, ctx: "TeXBotApplicationContext") -> None:
234233 )
235234
236235
237- class MakeMemberModalActual (Modal ):
238- """A discord. Modal containing a the input box for make member user interaction ."""
236+ class MakeMemberModal (Modal ):
237+ """A Modal containing an input field for users to enter their student ID ."""
239238
240239 @override
241240 def __init__ (self , bot : "TeXBot" ) -> None :
@@ -294,8 +293,8 @@ async def callback(self, interaction: discord.Interaction) -> None:
294293 await interaction .followup .send (content = message , ephemeral = True )
295294
296295
297- class OpenMemberVerifyModalView (View ):
298- """A discord. View containing a button to open a new member verification modal."""
296+ class OpenMemberVerificationModalView (View ):
297+ """A View containing a button to open a new member verification modal."""
299298
300299 @override
301300 def __init__ (self , bot : "TeXBot" ) -> None :
@@ -308,7 +307,7 @@ def __init__(self, bot: "TeXBot") -> None:
308307 async def verify_new_member_button_callback ( # type: ignore[misc]
309308 self , _ : discord .Button , interaction : discord .Interaction
310309 ) -> None :
311- await interaction .response .send_modal (MakeMemberModalActual (bot = self .bot ))
310+ await interaction .response .send_modal (MakeMemberModal (bot = self .bot ))
312311
313312
314313class MakeMemberModalCommandCog (MakeMemberBaseCog ):
@@ -317,15 +316,15 @@ class MakeMemberModalCommandCog(MakeMemberBaseCog):
317316 @TeXBotBaseCog .listener ()
318317 async def on_ready (self ) -> None :
319318 """Add OpenMemberVerifyModalView to the bot's list of permanent views."""
320- self .bot .add_view (OpenMemberVerifyModalView (bot = self .bot ))
319+ self .bot .add_view (OpenMemberVerificationModalView (bot = self .bot ))
321320
322321 async def _open_make_new_member_modal (
323322 self ,
324323 button_callback_channel : discord .TextChannel ,
325324 ) -> None :
326325 await button_callback_channel .send (
327326 content = "Click below to verify membership!" ,
328- view = OpenMemberVerifyModalView (bot = self .bot ),
327+ view = OpenMemberVerificationModalView (bot = self .bot ),
329328 )
330329
331330 @discord .slash_command (
@@ -346,7 +345,7 @@ async def send_make_member_modal(
346345 The "send-make-member-modal" command sends a message with a button that allows users
347346 to open the make member modal
348347 """
349- if not isinstance (ctx .channel , ( discord .TextChannel ) ):
348+ if not isinstance (ctx .channel , discord .TextChannel ):
350349 await ctx .respond (
351350 content = "This command can only be used in text channels." ,
352351 ephemeral = True ,
0 commit comments