Skip to content

Commit c5b3cd7

Browse files
committed
ERROR - (make_member_modal) MessageSavingSenderComponent.send() got an unexpected keyword argument 'ephemeral'
1 parent 4aa4acd commit c5b3cd7

File tree

2 files changed

+8
-134
lines changed

2 files changed

+8
-134
lines changed

.env.example

Lines changed: 0 additions & 122 deletions
This file was deleted.

cogs/make_member.py

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,9 @@ async def member_count(self, ctx: "TeXBotApplicationContext") -> None: # type:
332332

333333
class MakeMemberModalActual(Modal):
334334
"""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")
337338

338339
self.add_item(discord.ui.InputText(label="Student ID"))
339340

@@ -367,7 +368,9 @@ async def _open_make_new_member_modal(
367368
button_callback_channel: discord.TextChannel | discord.DMChannel,
368369
) -> None:
369370
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
371374
)
372375

373376
button_interaction: discord.Interaction = await self.bot.wait_for(
@@ -383,16 +386,9 @@ async def _open_make_new_member_modal(
383386

384387
if button_interaction.data["custom_id"] == "verify_new_member": # type: ignore[index, typeddict-item]
385388

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",
391391
)
392-
393-
#modal activation
394-
395-
396392
return
397393

398394
raise ValueError

0 commit comments

Comments
 (0)