You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to get all reactions for a specific discord message and CollectReactionsAsync() never goes through. Console writes "Start" and never reaches "End", tried to do the same with interacitivy.CollectReactionsAsync(discordMessage, TimeSpan.Zero) and it still did not work
Tried running the latest stable and nightly builds of DSharpPlus on .net 7 and .net framewrok 4.8.1 console applications with no
avail
var questionMessage = new DiscordEmbedBuilder()
{
Title = $"{question.question}",
Description = $"Time remaining: {time} seconds",
};
var discordMessage = await context.Channel.SendMessageAsync(embed: questionMessage);
time--;
foreach (DiscordEmoji em in emoji)
{
await discordMessage.CreateReactionAsync(em);
}
for (int i = 0; i <= time; time--)
{
await Task.Delay(1000);
var newmessage = new DiscordEmbedBuilder()
{
Title = $"{question.question}",
Description = $"{emoji[0]} | {answers[0]}\n\n" + $"{emoji[1]} | {answers[1]}\n\n" + $"{emoji[2]} | {answers[2]}\n\n" + $"{emoji[3]} | {answers[3]}\n\n" + $"Time remaining: {time} seconds",
};
await discordMessage.ModifyAsync(new DiscordMessageBuilder().AddEmbed(newmessage));
}
// Find index with correct answer
int correctIdx = answers.IndexOf(question.correct_answer);
Console.WriteLine("Start");
// THIS DOES NOT WORK
var reactions = await discordMessage.CollectReactionsAsync();
Console.WriteLine("End");
The text was updated successfully, but these errors were encountered:
But when calling CollectReactionsAsync() it does not trigger the event and does not post to console. Am i doing something wrong? I tried to change the MinimumLogLevel = LogLevel.Trace in DiscordConfiguration() but all mesages to console end once it goes past the ModifyAsync() methods and "Start" in the Issue code.
Summary
Trying to get all reactions for a specific discord message and
CollectReactionsAsync()
never goes through. Console writes "Start" and never reaches "End", tried to do the same withinteracitivy.CollectReactionsAsync(discordMessage, TimeSpan.Zero)
and it still did not workTried running the latest stable and nightly builds of DSharpPlus on .net 7 and .net framewrok 4.8.1 console applications with no
avail
The text was updated successfully, but these errors were encountered: