The slash commands can now use interactions
This commit is contained in:
22
ExtendedDiscordUIControls/Controls/Dropdown.cs
Normal file
22
ExtendedDiscordUIControls/Controls/Dropdown.cs
Normal 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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
20
ExtendedDiscordUIControls/Controls/SubItems/DropDownItem.cs
Normal file
20
ExtendedDiscordUIControls/Controls/SubItems/DropDownItem.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
13
ExtendedDiscordUIControls/ExtendedDiscordUIControls.csproj
Normal file
13
ExtendedDiscordUIControls/ExtendedDiscordUIControls.csproj
Normal file
@@ -0,0 +1,13 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\PluginManager\PluginManager.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
Reference in New Issue
Block a user