File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ export default {
2020 const modal = new ModalBuilder ( )
2121 const comment = new TextInputBuilder ( )
2222
23- modal . setTitle ( "Feedback Comment" ) . setCustomId ( "ticket-close-action-feedback-comment-modal" )
23+ modal . setTitle ( "Feedback Comment" ) . setCustomId ( "ticket-close-action-feedback-comment-modal:" + interaction . customId . split ( ":" ) [ 1 ] )
2424
2525 comment
2626 . setCustomId ( "comment" )
Original file line number Diff line number Diff line change @@ -50,6 +50,8 @@ export default {
5050 const guild = await client . guilds . fetch ( data . GuildId )
5151 const channel = await guild . channels . fetch ( data . TicketFeedbackChannelId )
5252
53+ console . log ( data . TicketFeedback . Comment )
54+
5355 await ( channel as TextChannel ) . send ( {
5456 flags : MessageFlags . IsComponentsV2 ,
5557 components : [
@@ -61,7 +63,7 @@ export default {
6163 `> **User**: ${ interaction . user } (\`${ interaction . user . id } \`)` ,
6264 `> **Ticket Id**: \`${ data . TicketId } \`` ,
6365 `> **Rating**: ${ data . TicketFeedback . Rating == 1 ? "⭐" : data . TicketFeedback . Rating == 2 ? "⭐⭐" : data . TicketFeedback . Rating == 3 ? "⭐⭐⭐" : data . TicketFeedback . Rating == 4 ? "⭐⭐⭐⭐" : data . TicketFeedback . Rating == 5 ? "⭐⭐⭐⭐⭐" : "N/A" } ` ,
64- `> **Comment**: ${ data . TicketFeedback . Comment } ` ,
66+ `> **Comment**: ${ data . TicketFeedback . Comment ?? "N/A" } ` ,
6567 `> **Sent At**: <t:${ Math . floor ( new Date ( data . TicketFeedback . SubmittedAt ) . getTime ( ) / 1000 ) } :R> (<t:${ Math . floor ( new Date ( data . TicketFeedback . SubmittedAt ) . getTime ( ) / 1000 ) } :F>)` ,
6668 ``
6769 ] . join ( "\n" ) )
Original file line number Diff line number Diff line change @@ -61,6 +61,9 @@ export default {
6161 }
6262 } )
6363 }
64+
65+ console . log ( interaction . fields . getTextInputValue ( "comment" ) )
66+
6467 await database . ticketFeedback . update ( {
6568 where : {
6669 id : feedback . id
You can’t perform that action at this time.
0 commit comments