diff --git a/kord-extensions/src/main/kotlin/com/kotlindiscord/kord/extensions/commands/application/slash/SlashCommand.kt b/kord-extensions/src/main/kotlin/com/kotlindiscord/kord/extensions/commands/application/slash/SlashCommand.kt index 4e30f0b060..5d4c5492f7 100644 --- a/kord-extensions/src/main/kotlin/com/kotlindiscord/kord/extensions/commands/application/slash/SlashCommand.kt +++ b/kord-extensions/src/main/kotlin/com/kotlindiscord/kord/extensions/commands/application/slash/SlashCommand.kt @@ -188,16 +188,28 @@ public abstract class SlashCommand, A : Argumen /** If enabled, adds the initial Sentry breadcrumb to the given context. **/ public open suspend fun firstSentryBreadcrumb(context: C, commandObj: SlashCommand<*, *, *>) { if (sentry.enabled) { + val fullName = buildString { + parentCommand?.let { + append(it.name) + append(" ") + } + + parentGroup?.let { + append(it.name) + append(" ") + } + + append(name) + } + context.sentry.context( "command", mapOf( - "name" to name, + "name" to fullName, "type" to "slash", - "extension" to extension.name, - "parent" to parentCommand?.name, - "group" to parentGroup?.name, - ).filterValues { it != null } + "extension" to extension.name + ) ) context.sentry.breadcrumb(BreadcrumbType.User) {