예제 #1
0
        public async Task PollGameRole(IUser user)
        {
            user = user ?? Context.User;
            Poll         rolePoll = _poll.CreatePoll(GameElement.Poll.Role(user.Username), GameElement.GetRoleNames().ToList(), Context.User);
            IUserMessage message  = await ReplyAsync(string.Empty, false, rolePoll.Message);

            await message.AddReactionsAsync(rolePoll.Emojis.Select(e => new Emoji(e)).ToArray());
        }