re-added quotes chat command for adding them by reply function
This commit is contained in:
@@ -8,6 +8,7 @@ require('dotenv').config()
|
||||
function delay(ms) { return new Promise(resolve => setTimeout(resolve, ms)); }
|
||||
|
||||
async function quotesAdd(interaction) {
|
||||
|
||||
const messageLink = await interaction.options.getString('link')
|
||||
//regex for message link
|
||||
const regex = /^https:\/\/discord\.com\/channels\/\d+\/\d+\/\d+$/
|
||||
@@ -357,7 +358,7 @@ module.exports = {
|
||||
.addSubcommand(s =>
|
||||
s
|
||||
.setName('add')
|
||||
.setDescription('add a new quote')
|
||||
.setDescription('add a new quote either by replying to a message or inserting the message link')
|
||||
.addStringOption(o => o.setName('link').setDescription('insert message link').setRequired(true)))
|
||||
.addSubcommand(s =>
|
||||
s
|
||||
|
||||
Reference in New Issue
Block a user