Commit a3c1586 1 parent d3e4ab8 commit a3c1586 Copy full SHA for a3c1586
File tree 1 file changed +11
-4
lines changed
1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -79,15 +79,22 @@ export async function execute(interaction: ChatInputCommandInteraction) {
79
79
if ( upcomingAssignments . length > 0 ) {
80
80
const embed = new EmbedBuilder ( )
81
81
. setColor ( randomColor ( ) )
82
- . setTitle ( "Upcoming Assignments" )
82
+ . setTitle ( "📚 Upcoming Assignments" )
83
83
. setDescription (
84
84
"Here are the upcoming assignments for the selected course:" ,
85
85
)
86
86
. addFields (
87
87
upcomingAssignments . map (
88
- ( assignment : { name : string ; due_at : string } ) => ( {
89
- name : assignment . name ,
90
- value : `Due: ${ new Date ( assignment . due_at ) . toLocaleString ( ) } ` ,
88
+ ( assignment : {
89
+ name : string ;
90
+ due_at : string ;
91
+ html_url : string ;
92
+ } ) => ( {
93
+ name : `${ assignment . name } ` ,
94
+ value : `Due: ${ new Date ( assignment . due_at ) . toLocaleString ( ) } \n[${
95
+ assignment . name
96
+ } ](${ assignment . html_url } )`,
97
+ inline : false ,
91
98
} ) ,
92
99
) ,
93
100
)
You can’t perform that action at this time.
0 commit comments