Q: How to work with Discord polling #3066
Replies: 3 comments 5 replies
-
https://docs.discordnet.dev/guides/polls/polls.html Discord.Net/src/Discord.Net.WebSocket/Discord.Net.WebSocket.csproj Lines 17 to 20 in 6e7b3c2 If you need a rest client you can use myDiscordSocketClient.Rest
|
Beta Was this translation helpful? Give feedback.
-
I do have a follow on question actually.
However, if I understand the model correctly, the corresponding Given the Discord MO to this point, I would believe |
Beta Was this translation helpful? Give feedback.
-
I am attempting the following, after I have the var questionText = $"...";
var answers = answerSource.Select(x => new PollMediaProperties { Text = x.Name }).ToList();
var restMessage = await textChannel.SendMessageAsync(poll: new()
{
Question = new() { Text = questionText },
Answers = answers,
AllowMultiselect = singleSelectOnly,
Duration = pollDuration
}); Running into
Not quite sure what's going on there. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Is it possible to work with Discord polling somehow? To create them? To inquire about them, are they ended or not, results, and so forth?
Edit: Should probably qualify that, I did search the repository, there are results for
"poll"
, but what I am interested in is aDiscord.WebSocket
interface.Thank you...
Beta Was this translation helpful? Give feedback.
All reactions