File tree Expand file tree Collapse file tree 2 files changed +5
-14
lines changed
src/Discord.Net.Interactions/Info/Commands Expand file tree Collapse file tree 2 files changed +5
-14
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -253,20 +253,21 @@ private static bool CheckTopLevel(ModuleInfo parent)
253
253
/// <inheritdoc/>
254
254
public override string ToString ( )
255
255
{
256
- StringBuilder builder = new ( ) ;
256
+ List < string > builder = new ( ) ;
257
257
258
258
var currentParent = Module ;
259
259
260
260
while ( currentParent != null )
261
261
{
262
262
if ( currentParent . IsSlashGroup )
263
- builder . AppendFormat ( " {0}" , currentParent . SlashGroupName ) ;
263
+ builder . Add ( currentParent . SlashGroupName ) ;
264
264
265
265
currentParent = currentParent . Parent ;
266
266
}
267
- builder . AppendFormat ( " {0}" , Name ) ;
267
+ builder . Reverse ( ) ;
268
+ builder . Add ( Name ) ;
268
269
269
- return builder . ToString ( ) . Trim ( ) ;
270
+ return string . Join ( " " , builder ) ;
270
271
}
271
272
}
272
273
}
You can’t perform that action at this time.
0 commit comments