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 fcf39a6 commit f030ea2Copy full SHA for f030ea2
src/commands/moderation/repel.ts
@@ -144,18 +144,15 @@ const handleDeleteMessages = async ({
144
lookBack: number;
145
}) => {
146
let deleted = 0;
147
- console.log({ '😭 targetId': target.id });
148
const failedChannels: string[] = [];
149
await Promise.allSettled(
150
channels.map(async (channel) => {
151
try {
152
const messages = channel.messages.cache;
153
const targetMessages = messages
154
.filter((message) => {
155
- console.log({
156
- '😭 message author id': message.author.id,
157
- });
158
return (
+ message.author &&
159
message.author.id === target.id &&
160
message.deletable &&
161
Date.now() - message.createdTimestamp < lookBack
0 commit comments