discordx-ts / discordx

🤖 Create a discord bot with TypeScript and Decorators!
https://discordx.js.org
Apache License 2.0
607 stars 50 forks source link

[Bug]: @discordjs/ws@0.5.0 -- Part of discord.js (14.7.0) deprecated SelectMenu #898

Closed ShoGinn closed 1 year ago

ShoGinn commented 1 year ago

What happened?

Using discord.js 14.7.0 -- a deprecation warning was displayed, this is shown during any Select Menu.

Ref: https://github.com/discordjs/discord.js/commit/5152abf7285581abf7689e9050fdc56c4abb1e2b

Reproduction

Use Pagination, or any DiscordX client to reproduce.

This pertains to Discordx and discordx/pagination

Package

@discordx/pagination

Version

Stable

Relevant log output

(node:18546) DeprecationWarning: The SelectMenuBuilder class is deprecated, use StringSelectMenuBuilder instead.
    at new SelectMenuBuilder (/node_modules/discord.js/src/structures/SelectMenuBuilder.js:17:15)
    at GeneratePage (/node_modules/@discordx/pagination/src/functions/GeneratePage.ts:161:18)
    at Pagination.getPage (/node_modules/@discordx/pagination/src/Pagination.ts:105:24)
    at Pagination.send (/node_modules/@discordx/pagination/src/Pagination.ts:124:29)
    at selectPlayableAssets (/src/utils/functions/dtEmbeds.ts:304:8)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at DarumaTrainingManager.selectPlayer (/src/commands/Dojo/DarumaTraining.ts:75:5)
    at next (/node_modules/discordx/src/decorators/classes/Method.ts:85:15)
    at next (/node_modules/discordx/src/decorators/classes/Method.ts:94:15)
    at ExtractLocale (/src/guards/extractLocale.ts:35:3)

Code of Conduct