diff --git a/docs/guides/int_basics/intro.md b/docs/guides/int_basics/intro.md deleted file mode 100644 index 62b2dfdb5..000000000 --- a/docs/guides/int_basics/intro.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -uid: Guides.Interactions.Intro -title: Introduction to Interactions ---- - -# Interactions - -Placeholder text does the brrr. - -Links to different sections of guides: msg comp / slash commands. diff --git a/src/Discord.Net.Interactions/Info/Commands/CommandInfo.cs b/src/Discord.Net.Interactions/Info/Commands/CommandInfo.cs index cfbcbacf2..cf1a2dfa1 100644 --- a/src/Discord.Net.Interactions/Info/Commands/CommandInfo.cs +++ b/src/Discord.Net.Interactions/Info/Commands/CommandInfo.cs @@ -253,20 +253,21 @@ namespace Discord.Interactions /// public override string ToString() { - StringBuilder builder = new(); + List builder = new(); var currentParent = Module; while (currentParent != null) { if (currentParent.IsSlashGroup) - builder.AppendFormat(" {0}", currentParent.SlashGroupName); + builder.Add(currentParent.SlashGroupName); currentParent = currentParent.Parent; } - builder.AppendFormat(" {0}", Name); + builder.Reverse(); + builder.Add(Name); - return builder.ToString().Trim(); + return string.Join(" ", builder); } } }