The slash commands can now use interactions

This commit is contained in:
2024-04-17 17:45:35 +03:00
parent 123e8e90a1
commit f32920c564
11 changed files with 131 additions and 20 deletions

View File

@@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ExtendedDiscordUIControls.Controls.SubItems;
namespace ExtendedDiscordUIControls.Controls
{
public class Dropdown
{
public List<DropDownItem> Items { get; private set; }
public Dropdown(List<DropDownItem> items) {
Items = items;
}
}
}

View File

@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ExtendedDiscordUIControls.Controls.SubItems
{
public class DropDownItem
{
public string Title { get; private set; }
public string Description { get; private set; }
public DropDownItem(string title, string description)
{
Title = title;
Description = description;
}
}
}