aboutsummaryrefslogtreecommitdiff
path: root/commands/mod/ticket.js
diff options
context:
space:
mode:
authorame <[email protected]>2023-10-31 17:24:25 -0500
committerame <[email protected]>2023-10-31 17:24:25 -0500
commit53b4e132d593ac6a0d7cad6f0c988a97b68b8d2d (patch)
tree5db8aa7e1768ecec5fd1b62ea0f995a8067410ed /commands/mod/ticket.js
parent350d0de46b90d8a54fbf98ca500a4f88512f7a69 (diff)
sticky slash command, extended slash commands, and other fixes
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")