This commit is contained in:
Lukian LEIZOUR 2023-03-04 15:29:08 +01:00
parent fcd80c5ac8
commit 8654d31004
4 changed files with 126 additions and 11 deletions

View file

@ -62,6 +62,37 @@ const commands = [
name : 'listconvs',
description : 'List all the conversations in the database',
},
{
name : 'addmsg',
description : 'Add a message to a conversation',
options : [
{
name : 'name',
description : 'The name of the conversation',
type : ApplicationCommandOptionType.String,
required : true,
},
{
name : 'message',
description : 'The message to add to the conversation',
type : ApplicationCommandOptionType.String,
required : true,
},
],
},
{
name : 'displayconv',
description : 'Display a conversation',
options : [
{
name : 'name',
description : 'The name of the conversation',
type : ApplicationCommandOptionType.String,
required : true,
},
],
},
];
const rest = new REST({ version: '10' }).setToken(process.env.DISCORD);