File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -129,9 +129,8 @@ module.exports = {
129129 // Send the panel embed and action row
130130 await interaction . channel
131131 . send ( { embeds : [ panelEmbed ] , components : [ actionRowsMenus ] } )
132- . then ( async function ( message ) {
132+ . then ( async function ( ) {
133133 await mainDB . set ( `selectMenuOptions` , options ) ;
134- await mainDB . set ( `ticketPanelMsgID` , message . id ) ;
135134 } ) ;
136135 logMessage (
137136 `${ interaction . user . tag } sent the ticket panel in the channel #${ interaction . channel . name } ` ,
Original file line number Diff line number Diff line change @@ -136,10 +136,9 @@ module.exports = {
136136 } else if ( interaction . isStringSelectMenu ( ) ) {
137137 if ( interaction . customId === "categoryMenu" ) {
138138 // Reset the select menu upon selection
139- const ticketPanelMsgID = await mainDB . get ( "ticketPanelMsgID" ) ;
140139 const selectMenuOptions = await mainDB . get ( "selectMenuOptions" ) ;
141140 await interaction . channel . messages
142- . fetch ( ticketPanelMsgID )
141+ . fetch ( interaction . message . id )
143142 . then ( async ( message ) => {
144143 const selectMenu = new StringSelectMenuBuilder ( )
145144 . setCustomId ( "categoryMenu" )
You can’t perform that action at this time.
0 commit comments