Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setDMPermission and setDefaultMemberPermissions do not exist on type 'SlashCommandOptionsOnlyBuilder' #10252

Closed
Anonymous4078 opened this issue May 5, 2024 · 1 comment · Fixed by #10253

Comments

@Anonymous4078
Copy link

Anonymous4078 commented May 5, 2024

Which package is this bug report for?

discord.js

Issue description

So my builds code used to work fine till discord js v14.14.1 and now broke in 14.15.1

Logs:

Run yarn build
Error: src/commands/music/autoplay.ts(40,10): error TS2339: Property 'setDefaultMemberPermissions' does not exist on type 'SlashCommandOptionsOnlyBuilder'.
Error: src/commands/music/join.ts(50,10): error TS2339: Property 'setDefaultMemberPermissions' does not exist on type 'SlashCommandOptionsOnlyBuilder'.
Error: src/commands/music/leave.ts(40,10): error TS2339: Property 'setDefaultMemberPermissions' does not exist on type 'SlashCommandOptionsOnlyBuilder'.
Error: src/commands/music/join.ts(48,10): error TS2339: Property 'setDMPermission' does not exist on type 'SlashCommandOptionsOnlyBuilder'.
Error: src/commands/music/leave.ts(40,10): error TS2339: Property 'setDefaultMemberPermissions' does not exist on type 'SlashCommandOptionsOnlyBuilder'.
Error: src/commands/music/play.ts(35,10): error TS2339: Property 'setDMPermission' does not exist on type 'SlashCommandOptionsOnlyBuilder'.
Error: src/commands/admin/restart.ts(67,10): error TS2339: Property 'setDMPermission' does not exist on type 'SlashCommandOptionsOnlyBuilder'.
Error: Process completed with exit code 1.

Code sample

No response

Versions

  • discord.js v14.15.1
  • TypeScript v5.4.4

Issue priority

Low (slightly annoying)

Which partials do you have configured?

Not applicable

Which gateway intents are you subscribing to?

Not applicable

I have tested this issue on a development release

No response

@Jiralite Jiralite changed the title Breaking change setDMPermission ad setDefaultMemberPermissions do not exist on type 'SlashCommandOptionsOnlyBuilder' May 5, 2024
@Anonymous4078 Anonymous4078 changed the title setDMPermission ad setDefaultMemberPermissions do not exist on type 'SlashCommandOptionsOnlyBuilder' setDMPermission and setDefaultMemberPermissions do not exist on type 'SlashCommandOptionsOnlyBuilder' May 5, 2024
@vladfrangu vladfrangu linked a pull request May 5, 2024 that will close this issue
@Jiralite Jiralite added the has PR label May 5, 2024
@kodiakhq kodiakhq bot closed this as completed in #10253 May 5, 2024
@Anonymous4078

This comment was marked as spam.

@discordjs discordjs locked as resolved and limited conversation to collaborators May 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants