This commit is contained in:
Erik 2023-08-13 20:41:17 +03:00
parent fd1c4c9b85
commit 6895018d24
Signed by untrusted user: Navy.gif
GPG Key ID: 2532FBBB61C65A68

View File

@ -29,7 +29,7 @@ class CannedReply extends Command {
const list = Object.entries(this.client.modmail.replies); const list = Object.entries(this.client.modmail.replies);
let str = ''; let str = '';
if (second.toLowerCase() === '-dm') channel = await message.author.createDM(); if (second?.toLowerCase() === '-dm') channel = await message.author.createDM();
// eslint-disable-next-line no-shadow // eslint-disable-next-line no-shadow
for (const [ name, content ] of list) { for (const [ name, content ] of list) {
const substr = `**${name}:** ${content}\n`; const substr = `**${name}:** ${content}\n`;