@@ -106,6 +106,7 @@ async def on_submit(self, interaction: discord.Interaction) -> None:
106106 await interaction .user .add_roles (* roles )
107107
108108 await self .log_registration_to_channel (interaction , name = name , order = order , roles = roles )
109+ await self .log_registration_to_user (interaction , name = nickname )
109110 await self .registration_logger .mark_as_registered (tickets [0 ])
110111 _logger .info (f"Registration successful: { order = } , { name = } " )
111112
@@ -124,6 +125,17 @@ async def on_error(self, interaction: Interaction, error: Exception) -> None:
124125 await self .log_error_to_user (interaction , "Something went wrong." )
125126 await self .log_error_to_channel (interaction , f"{ error .__class__ .__name__ } : { error } " )
126127
128+ @staticmethod
129+ async def log_registration_to_user (interaction : Interaction , * , name : str ) -> None :
130+ await interaction .response .send_message (
131+ f"Thank you { name } , you are now registered!\n \n "
132+ f"Also, your nickname was changed to the name you used to register your ticket. "
133+ f"This is also the name that would be on your conference badge, which means that "
134+ f"your nickname can be your 'virtual conference badge'." ,
135+ ephemeral = True ,
136+ delete_after = None ,
137+ )
138+
127139 async def log_registration_to_channel (
128140 self , interaction : Interaction , * , name : str , order : str , roles : list [Role ]
129141 ) -> None :
0 commit comments