File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -144,18 +144,23 @@ const handleDeleteMessages = async ({
144144 lookBack : number ;
145145} ) => {
146146 let deleted = 0 ;
147+ console . log ( { '😠targetId' : target . id } ) ;
147148 const failedChannels : string [ ] = [ ] ;
148149 await Promise . allSettled (
149150 channels . map ( async ( channel ) => {
150151 try {
151152 const messages = channel . messages . cache ;
152153 const targetMessages = messages
153- . filter (
154- ( message ) =>
154+ . filter ( ( message ) => {
155+ console . log ( {
156+ '😠message author id' : message . author . id ,
157+ } ) ;
158+ return (
155159 message . author . id === target . id &&
156160 message . deletable &&
157161 Date . now ( ) - message . createdTimestamp < lookBack
158- )
162+ ) ;
163+ } )
159164 . first ( 10 ) ;
160165
161166 if ( targetMessages . length === 0 ) {
You can’t perform that action at this time.
0 commit comments