File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -159,15 +159,9 @@ reminderCmd is null
159159 }
160160 else if ( userReminders . Count <= 25 )
161161 {
162- var options = new List < DiscordSelectComponentOption > ( ) ;
163- options . AddRange ( userReminders . Select ( reminder =>
164- new DiscordSelectComponentOption ( reminder . ReminderText . Truncate ( 100 ) ,
165- reminder . ReminderId . ToString ( ) ,
166- reminder . ReminderTime . Humanize ( ) ) ) ) ;
167-
168162 await ctx . RespondAsync (
169163 new DiscordInteractionResponseBuilder ( ) . WithContent ( "Please choose a reminder to modify." )
170- . AddActionRowComponent ( new DiscordSelectComponent ( "reminder-modify-dropdown" , null , options ) )
164+ . AddActionRowComponent ( CreateSelectComponentFromReminders ( userReminders , "reminder-modify-dropdown" ) )
171165 . AsEphemeral ( ) ) ;
172166 }
173167 else
You can’t perform that action at this time.
0 commit comments