Import the message type as a type

Co-authored-by: Ryan Cao <70191398+ryanccn@users.noreply.github.com>
Signed-off-by: PandaNinjas <admin@malwarefight.gq>
This commit is contained in:
PandaNinjas 2023-01-17 02:38:36 +00:00 committed by GitHub
parent 73676c28f4
commit d2119299fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
import { Colors, EmbedBuilder, Message, ThreadChannel } from "discord.js";
import { Colors, EmbedBuilder, type Message, ThreadChannel } from "discord.js";
function findFirstImage(message: Message): string | undefined {
const result = message.attachments.find((attach) => {