This commit is contained in:
Lukian LEIZOUR 2023-03-04 11:49:14 +01:00
parent e2f51ddee9
commit 6781c7ff91
3 changed files with 140 additions and 67 deletions

View file

@ -30,7 +30,33 @@ const commands = [
required : true,
},
],
}
},
{
name : 'addconv',
description : 'Add a conversation to the database',
options : [
{
name : 'name',
description : 'The name of the conversation',
type : ApplicationCommandOptionType.String,
required : true,
},
],
},
{
name : 'delconv',
description : 'Delete a conversation from the database',
options : [
{
name : 'name',
description : 'The name of the conversation',
type : ApplicationCommandOptionType.String,
required : true,
},
],
},
];
const rest = new REST({ version: '10' }).setToken(process.env.DISCORD);