From ee7a972c5245a0402a32d295cd98c7ed39d4ff3e Mon Sep 17 00:00:00 2001 From: NoComment1105 Date: Wed, 6 Sep 2023 12:53:24 +0100 Subject: [PATCH] Remove old tag code from clear command --- .../lilybot/extensions/moderation/ModerationCommands.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/org/hyacinthbots/lilybot/extensions/moderation/ModerationCommands.kt b/src/main/kotlin/org/hyacinthbots/lilybot/extensions/moderation/ModerationCommands.kt index 5de7aab4..6e69d773 100644 --- a/src/main/kotlin/org/hyacinthbots/lilybot/extensions/moderation/ModerationCommands.kt +++ b/src/main/kotlin/org/hyacinthbots/lilybot/extensions/moderation/ModerationCommands.kt @@ -1434,7 +1434,7 @@ private suspend fun EphemeralSlashCommandContext<*, *>.clearMessages( title = "${count ?: messages.size} messages have been cleared." description = "Action occurred in ${textChannel.mention}" footer { - text = user.asUserOrNull()?.tag ?: "Unable to get user tag" + text = user.asUserOrNull()?.username ?: "Unable to get username" icon = user.asUserOrNull()?.avatar?.cdnUrl?.toUrl() } color = DISCORD_BLACK