aboutsummaryrefslogtreecommitdiff
path: root/src/lib/extensions/discord-akairo/BushClientUtil.ts
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-08-05 16:14:12 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-08-05 16:14:12 -0400
commitad2077fa157d49c1099f21ac2effe05903c39035 (patch)
tree4ada5fb9a6243d21411500dc46b203ace06718e1 /src/lib/extensions/discord-akairo/BushClientUtil.ts
parentdbb2de6e5c4b0cf80a5be8e62bbabaac2f3dd516 (diff)
downloadtanzanite-ad2077fa157d49c1099f21ac2effe05903c39035.tar.gz
tanzanite-ad2077fa157d49c1099f21ac2effe05903c39035.tar.bz2
tanzanite-ad2077fa157d49c1099f21ac2effe05903c39035.zip
fixed ~500 errors from breaking changes
Diffstat (limited to 'src/lib/extensions/discord-akairo/BushClientUtil.ts')
-rw-r--r--src/lib/extensions/discord-akairo/BushClientUtil.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/extensions/discord-akairo/BushClientUtil.ts b/src/lib/extensions/discord-akairo/BushClientUtil.ts
index 42d3d13..d8705a3 100644
--- a/src/lib/extensions/discord-akairo/BushClientUtil.ts
+++ b/src/lib/extensions/discord-akairo/BushClientUtil.ts
@@ -315,11 +315,11 @@ export class BushClientUtil extends ClientUtil {
const style = Constants.MessageButtonStyles.PRIMARY;
let curPage = 0;
if (typeof embeds !== 'object') throw new Error('embeds must be an object');
- const msg: Message = await message.util.reply({
+ const msg = (await message.util.reply({
content: text || null,
embeds: [embeds[curPage]],
components: [getPaginationRow()]
- });
+ })) as Message;
const filter = (interaction: ButtonInteraction) =>
interaction.customId.startsWith('paginate_') && interaction.message == msg;
const collector = msg.createMessageComponentCollector({ filter, time: 300000 });
@@ -409,7 +409,7 @@ export class BushClientUtil extends ClientUtil {
public async sendWithDeleteButton(message: BushMessage | BushSlashMessage, options: MessageOptions): Promise<void> {
const paginateEmojis = this.#paginateEmojis;
updateOptions();
- const msg = await message.util.reply(options as MessageOptions & { split?: false });
+ const msg = (await message.util.reply(options as MessageOptions & { split?: false })) as Message;
const filter = (interaction: ButtonInteraction) => interaction.customId == 'paginate__stop' && interaction.message == msg;
const collector = msg.createMessageComponentCollector({ filter, time: 300000 });
collector.on('collect', async (interaction: MessageComponentInteraction) => {