Kind of "Descriptions" update

Signed-off-by: mctaylors <cantsendmails@mctaylors.ru>
This commit is contained in:
Macintxsh 2023-12-19 23:21:52 +03:00
parent 874a43f1cf
commit 7337bc4024
Signed by: mctaylors
GPG key ID: 7181BEBE676903C1
2 changed files with 5 additions and 3 deletions

View file

@ -11,6 +11,7 @@ using Remora.Discord.API.Objects;
using Remora.Discord.Commands.Feedback.Messages;
using Remora.Discord.Commands.Feedback.Services;
using Remora.Discord.Extensions.Embeds;
using Remora.Discord.Extensions.Formatting;
using Remora.Results;
namespace Cassette.Commands;
@ -36,8 +37,9 @@ public sealed class BotCommandGroup(
}
var description = new StringBuilder()
.AppendLine("A Discord bot written by [@mctaylors](https://git.mctaylors.ru/mctaylors) " +
"that plays your music in your voice channels.")
.Append("Cassette is a Discord bot written by ")
.Append(Markdown.Hyperlink("@mctaylors", "https://git.mctaylors.ru/mctaylors"))
.AppendLine(" that plays your most favourite music in your most visited voice channels.")
.AppendLine("Powered by Remora.Discord & Lavalink4NET.");
var embed = new EmbedBuilder()

View file

@ -135,7 +135,7 @@ public sealed class ControlsCommandGroup(
[DiscordDefaultDMPermission(false)]
[UsedImplicitly]
public async Task<Result> RepeatCommandAsync(
TrackRepeatMode mode)
[Description("Track repeat mode")] TrackRepeatMode mode)
{
var player = await LavalinkPlayer.GetPlayerAsync(
commandContext, audioService, feedbackService);