Skip to content

Commit a940b45

Browse files
committed
fix: update type for targetMessages in repel command to use Message from discord.js
1 parent 5d114b3 commit a940b45

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/commands/moderation/repel.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {
55
type ChatInputCommandInteraction,
66
EmbedBuilder,
77
GuildMember,
8+
type Message,
89
MessageFlags,
910
PermissionFlagsBits,
1011
type Role,
@@ -152,12 +153,12 @@ const handleDeleteMessages = async ({
152153
// Collect all target messages from all channels and find the latest timestamp
153154
const channelMessages: Array<{
154155
channel: TextChannel;
155-
targetMessages: Map<string, import('discord.js').Message>;
156+
targetMessages: Map<string, Message>;
156157
}> = [];
157158
let latestMessageTimestamp = 0;
158159

159160
for (const channel of channels) {
160-
const targetMessages = new Map<string, import('discord.js').Message>();
161+
const targetMessages = new Map<string, Message>();
161162

162163
for (const [id, message] of channel.messages.cache) {
163164
if (message.author && message.author.id === target.id && message.deletable) {

0 commit comments

Comments
 (0)