We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6f3d0c commit 3b9ac54Copy full SHA for 3b9ac54
src/events/on_message/_advise.ts
@@ -1,13 +1,8 @@
1
+import { type Message, hideLinkEmbed, codeBlock } from 'discord.js';
2
import urlRegex from 'url-regex';
-import {
3
- type Message,
4
- ChannelType,
5
- hideLinkEmbed,
6
- codeBlock,
7
-} from 'discord.js';
8
9
export default async function mutate_content(message: Message) {
10
- if (message.channel.type != ChannelType.GuildText) return;
+ if (message.channel.isTextBased()) return;
11
12
const links = message.content
13
.match(urlRegex())
0 commit comments