File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -246,17 +246,17 @@ module.exports = new Command({
246246 components : [ row ] ,
247247 } ) ;
248248
249- const filter = ( i ) => i . user . id === interaction . user . id ;
250249 let collector ;
251250 try {
251+ const filter = ( i ) => i . user . id === interaction . user . id ;
252252 collector = await m . awaitMessageComponent ( {
253253 filter,
254254 max : 1 ,
255255 componentType : "BUTTON" ,
256256 time : supportbot . Timeout * 60000 ,
257257 } ) ;
258258 } catch ( e ) {
259- if ( e . code == "INTERACTION_COLLECTOR_ERROR" )
259+ if ( e . code == "INTERACTION_COLLECTOR_ERROR" ) {
260260 try {
261261 TicketData = await JSON . parse (
262262 fs . readFileSync ( "./Data/TicketData.json" , "utf8" )
@@ -276,7 +276,8 @@ module.exports = new Command({
276276 "Your ticket has timed out. Please open a new one, and select a department."
277277 ) ;
278278 } catch ( e ) { }
279- return await ticketChannel . delete ( ) ;
279+ return await ticketChannel . delete ( ) ;
280+ }
280281 }
281282 let role ;
282283 let title ;
You can’t perform that action at this time.
0 commit comments