|
6 | 6 | ActionRowBuilder,
|
7 | 7 | ButtonBuilder,
|
8 | 8 | Collection,
|
| 9 | + InteractionCollector, |
| 10 | + ButtonInteraction, |
9 | 11 | } from "discord.js";
|
10 | 12 | import { DatabaseService } from "./database/index.js";
|
11 | 13 | import { I18n, I18nArgs } from "@hammerhq/localization";
|
@@ -67,7 +69,7 @@ export class Manager extends Client {
|
67 | 69 | commands: Collection<string, Command>;
|
68 | 70 | interval: Collection<string, NodeJS.Timer>;
|
69 | 71 | sentQueue: Collection<string, boolean>;
|
70 |
| - nplayingMsg: Collection<string, Message>; |
| 72 | + nplayingMsg: Collection<string, { coll: InteractionCollector<ButtonInteraction<"cached">>; msg: Message }>; |
71 | 73 | aliases: Collection<string, string>;
|
72 | 74 | plButton: Collection<string, PlayerButton>;
|
73 | 75 | leaveDelay: Collection<string, NodeJS.Timeout>;
|
@@ -131,7 +133,10 @@ export class Manager extends Client {
|
131 | 133 | this.interval = new Collection<string, NodeJS.Timer>();
|
132 | 134 | this.sentQueue = new Collection<string, boolean>();
|
133 | 135 | this.aliases = new Collection<string, string>();
|
134 |
| - this.nplayingMsg = new Collection<string, Message>(); |
| 136 | + this.nplayingMsg = new Collection< |
| 137 | + string, |
| 138 | + { coll: InteractionCollector<ButtonInteraction<"cached">>; msg: Message } |
| 139 | + >(); |
135 | 140 | this.plButton = new Collection<string, PlayerButton>();
|
136 | 141 | this.leaveDelay = new Collection<string, NodeJS.Timeout>();
|
137 | 142 | this.nowPlaying = new Collection<string, { interval: NodeJS.Timeout; msg: GlobalMsg }>();
|
|
0 commit comments