mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-09-06 02:01:26 +03:00
fix: null
incorrectly triggering tags (closes #484)
This commit is contained in:
@@ -277,7 +277,7 @@ module.exports = class extends Listener {
|
|||||||
client.keyv.set(cacheKey, tags, ms('1h'));
|
client.keyv.set(cacheKey, tags, ms('1h'));
|
||||||
}
|
}
|
||||||
|
|
||||||
const tag = tags.find(tag => message.content.match(new RegExp(tag.regex, 'mi')));
|
const tag = tags.find(tag => tag.regex && message.content.match(new RegExp(tag.regex, 'mi')));
|
||||||
if (tag) {
|
if (tag) {
|
||||||
await message.reply({
|
await message.reply({
|
||||||
embeds: [
|
embeds: [
|
||||||
|
Reference in New Issue
Block a user