File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 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 ) {
You can’t perform that action at this time.
0 commit comments