Skip to content

Commit

Permalink
fix no response when beginning vote
Browse files Browse the repository at this point in the history
i haven't tested this but i'm pretty sure it's because of timeout, so thorn now responds before adding reactions to the message
  • Loading branch information
chamik committed May 23, 2024
1 parent 155c857 commit 8cf33c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thorn/Modules/AdminInteractionModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ public async Task Say([ChannelTypes(ChannelType.Text)] ISocketMessageChannel cha
[RequireRole("O4", Group = "Admins")]
public async Task Vote([ChannelTypes(ChannelType.Text)] ISocketMessageChannel channel, string text)
{
await RespondAsync($"hlasování zahájeno v kanálu {channel}!", ephemeral: true);
var msg = await channel.SendMessageAsync(text);
await AddVoteEmotes(msg);
await RespondAsync($"hlasování zahájeno v kanálu {channel}!", ephemeral: true);
}

private async Task AddVoteEmotes(RestUserMessage msg)
Expand Down

0 comments on commit 8cf33c3

Please sign in to comment.