@@ -332,8 +332,9 @@ async def member_count(self, ctx: "TeXBotApplicationContext") -> None: # type:
332
332
333
333
class MakeMemberModalActual (Modal ):
334
334
"""A discord.Modal containing a the input box for make member user interaction."""
335
- def __init__ (self , * args , ** kwargs ) -> None :
336
- super ().__init__ (* args , ** kwargs )
335
+
336
+ def __init__ (self ) -> None :
337
+ super ().__init__ (title = "Make Member Modal" )
337
338
338
339
self .add_item (discord .ui .InputText (label = "Student ID" ))
339
340
@@ -367,7 +368,9 @@ async def _open_make_new_member_modal(
367
368
button_callback_channel : discord .TextChannel | discord .DMChannel ,
368
369
) -> None :
369
370
await message_sender_component .send (
370
- content = "would you like to open the make member modal" , view = OpenMemberVerifyModalView ()
371
+ content = "would you like to open the make member modal" ,
372
+ view = OpenMemberVerifyModalView (),
373
+ ephemeral = False
371
374
)
372
375
373
376
button_interaction : discord .Interaction = await self .bot .wait_for (
@@ -383,16 +386,9 @@ async def _open_make_new_member_modal(
383
386
384
387
if button_interaction .data ["custom_id" ] == "verify_new_member" : # type: ignore[index, typeddict-item]
385
388
386
- await button_interaction .edit_original_response (
387
- content = (
388
- f"Successfully opend make member modal "
389
- ),
390
- view = None ,
389
+ await button_interaction .message .reply (
390
+ content = "you have opened this modal once before" ,
391
391
)
392
-
393
- #modal activation
394
-
395
-
396
392
return
397
393
398
394
raise ValueError
0 commit comments