示例#1
0
        public async Task PostMenu(ReactMenu Menu, IMessageChannel Channel)
        {
            var Message = await Channel.SendMessageAsync(embed : Menu.Embed);


            foreach (var MenuEntry in Menu.Options)
            {
                await Message.AddReactionAsync(MenuEntry.Button);
            }

            Menu.Guid      = new Guid();
            Menu.MessageId = Message.Id;

            Menus.Add(Message.Id, Menu);
        }
示例#2
0
 public ReactMenuBuilder()
 {
     Menu  = new ReactMenu();
     Embed = null;
 }