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

Only messages are allowed to create polls #10288

Closed
JuanPablo2655 opened this issue May 20, 2024 · 1 comment
Closed

Only messages are allowed to create polls #10288

JuanPablo2655 opened this issue May 20, 2024 · 1 comment

Comments

@JuanPablo2655
Copy link
Contributor

JuanPablo2655 commented May 20, 2024

Which package is this bug report for?

discord.js

Issue description

I tried to create a poll through interactions but I found out that I can only do it through a message object
Screenshot 2024-05-20 at 12 43 41 AM

Code sample

await interaction.followUp({
			poll: {
				question: { text: "some text here" },
				answers: [{ text: 'Aye' }, { text: 'Nay' }],
				duration: 1,
				allowMultiselect: false,
			},
		});

This should error out

Versions

  • discord.js 14.15.2
  • nodejs 20.13.1
  • typescript 5.4.5
  • macOS 14.5

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
Copy link
Member

Duplicate of #10258.

@Jiralite Jiralite closed this as not planned Won't fix, can't repro, duplicate, stale May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants