Ejemplo n.º 1
0
        public async Task <IUserMessage> SendCodexMessage(IMessageChannel channel, CodexMessage codexMessage)
        {
            var message = await channel.SendMessageAsync("", false, codexMessage.GetEmbed()); // Sent message

            EmojiSet reactions = new EmojiSet();                                              // Get emoji set
            await message.AddReactionAsync(reactions.EmoteBACK);                              // Add back emote

            for (int i = 0; i < codexMessage.Count - 1; i++)                                  // For each message in Codex Message minus 1
            {
                await message.AddReactionAsync(reactions.GetEmote(i));                        // Add the number reaction
            }
            await message.AddReactionAsync(reactions.EmoteTRASH);                             // Add end emote

            _messages.Add(message.Id, codexMessage);                                          // Add the message to the messages dictionary

            return(message);                                                                  // Return the message
        }