File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 33 "module" : " src/index.ts" ,
44 "type" : " module" ,
55 "scripts" : {
6- "start" : " bun run src/index.ts" ,
7- "watch" : " bun run --watch src/index.ts" ,
8- "build" : " bun build src/index.ts --compile --outfile dist/bot" ,
6+ "start" : " tsc && bun run src/index.ts" ,
7+ "watch" : " tsc && bun run --watch src/index.ts" ,
8+ "build" : " tsc && bun build src/index.ts --compile --outfile dist/bot" ,
99 "lint" : " eslint ." ,
1010 "lint:fix" : " eslint . --fix"
1111 },
Original file line number Diff line number Diff line change 66 type ChatInputCommandInteraction ,
77 type MessageActionRowComponentBuilder as MessageActionRow ,
88 MessageFlags ,
9- PermissionFlagsBits ,
109 SlashCommandBuilder ,
1110} from 'discord.js' ;
1211
@@ -208,10 +207,11 @@ async function handlePlaytimePlayerReply(
208207
209208 for ( ; ; ) {
210209 try {
211- const pagination = await response . awaitMessageComponent ( {
212- filter : ( i ) => i . user . id === interaction . user . id ,
213- time : 60_000 ,
214- } ) ;
210+ const pagination =
211+ await response . resource ! . message ! . awaitMessageComponent ( {
212+ filter : ( i ) => i . user . id === interaction . user . id ,
213+ time : 60_000 ,
214+ } ) ;
215215
216216 if ( pagination . customId === 'playtimeNext' ) {
217217 if ( page < maxPage ) {
You can’t perform that action at this time.
0 commit comments