feat: add disallowed mention
This commit is contained in:
parent
e50a348686
commit
d8d0b453d2
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
import { Command, LearnData } from '../modules'
|
import { Command, LearnData } from '../modules'
|
||||||
import { Message } from 'discord.js'
|
import { Message } from 'discord.js'
|
||||||
|
import config from '../../config.json'
|
||||||
|
|
||||||
export default class extends Command {
|
export default class extends Command {
|
||||||
public constructor() {
|
public constructor() {
|
||||||
|
@ -18,7 +19,7 @@ export default class extends Command {
|
||||||
'migan',
|
'migan',
|
||||||
'간미',
|
'간미',
|
||||||
]
|
]
|
||||||
const disallowed = ['@everyone', '@here']
|
const disallowed = ['@everyone', '@here', `<@${config.bot.owner_ID}>`]
|
||||||
const db = await msg.client.chatBot.db.getConnection()
|
const db = await msg.client.chatBot.db.getConnection()
|
||||||
const [learn] = await db.execute<LearnData[]>(
|
const [learn] = await db.execute<LearnData[]>(
|
||||||
'SELECT * FROM learn WHERE command = ?;',
|
'SELECT * FROM learn WHERE command = ?;',
|
||||||
|
|
Loading…
Reference in a new issue