aboutsummaryrefslogtreecommitdiff
path: root/commands/mod/ticket.js
diff options
context:
space:
mode:
Diffstat (limited to 'commands/mod/ticket.js')
-rw-r--r--commands/mod/ticket.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/commands/mod/ticket.js b/commands/mod/ticket.js
index 5e69ed7..e499dd8 100644
--- a/commands/mod/ticket.js
+++ b/commands/mod/ticket.js
@@ -78,6 +78,7 @@ module.exports = {
break;
case 'dump':
case 'list':
+ if(param.ticket_id==null) return param.message.reply("you must provide a ticket id")
tickets = await db.Tickets.findAll({where:{ticket:param.ticket_id}})
if(tickets.length==0){
return param.message.reply("ticket not found:c")