2022-10-27 04:52:29 +02:00
|
|
|
using Myriad.Types;
|
|
|
|
|
|
2021-12-07 01:36:54 -05:00
|
|
|
namespace PluralKit.Bot;
|
|
|
|
|
|
|
|
|
|
public partial class CommandTree
|
|
|
|
|
{
|
2025-10-07 21:59:26 +00:00
|
|
|
private async Task PrintCommandList(Context ctx, string subject, string commands)
|
2021-12-07 01:36:54 -05:00
|
|
|
{
|
2025-10-11 05:17:13 +00:00
|
|
|
if (commands.Length == 0)
|
|
|
|
|
{
|
|
|
|
|
await ctx.Reply($"No commands related to {subject} was found. For the full list of commands, see the website: <https://pluralkit.me/commands>");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-27 04:52:29 +02:00
|
|
|
await ctx.Reply(
|
2025-10-08 03:26:40 +00:00
|
|
|
components: [
|
|
|
|
|
new MessageComponent()
|
|
|
|
|
{
|
|
|
|
|
Type = ComponentType.Text,
|
|
|
|
|
Content = $"Here is a list of commands related to {subject}:\n{commands}\nFor a full list of possible commands, see <https://pluralkit.me/commands>.",
|
|
|
|
|
}
|
|
|
|
|
]
|
2022-10-27 04:52:29 +02:00
|
|
|
);
|
2021-12-07 01:36:54 -05:00
|
|
|
}
|
|
|
|
|
}
|