aboutsummaryrefslogtreecommitdiff
path: root/commands/mod/ticket.js
diff options
context:
space:
mode:
authorame <[email protected]>2023-10-31 22:33:02 -0500
committerame <[email protected]>2023-10-31 22:33:02 -0500
commit6e90cde57af865e585cf06d297eadb4424ebcdbb (patch)
treeb4bdfeec2cefb83c5f61027cbf0ebb890122d391 /commands/mod/ticket.js
parent53b4e132d593ac6a0d7cad6f0c988a97b68b8d2d (diff)
subcommands
Diffstat (limited to 'commands/mod/ticket.js')
-rw-r--r--commands/mod/ticket.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/mod/ticket.js b/commands/mod/ticket.js
index e499dd8..ba3c99e 100644
--- a/commands/mod/ticket.js
+++ b/commands/mod/ticket.js
@@ -24,7 +24,7 @@ module.exports = {
this.exec(client,{att:matt,action:action,ticket_id:ticket_id,r_message:r_message,message:message})
},
s_options:[{type:"string",name:"ticket",desc:"ticket id",required:true,autocomplete: async function(){ let tik = await db.Tickets.findAll({attributes:['ticket'],where:{status:'open'}}); let out = []; for(let t of tik) out.push(t.ticket); return out; }},
- {type:"string",name:"action",desc:"operation to perform",required:true,autocomplete:["reply","close","dump"]},
+ {type:"string",name:"action",desc:"operation to perform",required:true,autocomplete:false,choices:["reply","close","dump"]},
{type:"string",name:"message",desc:"message to reply with",required:false,autocomplete:false},
{type:"attachment",name:"attachment",desc:"attachment to reply with",required:false,autocomplete:false}],
async s_main(client,Discord,interaction){