Skip to content

Commit

Permalink
If it doesn't fit, upload as a file
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPowerGamerBR committed Oct 23, 2024
1 parent f879ad2 commit 5f35f0f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ class DailyCheckCommand(val helper: LorittaHelper) : SlashCommandDeclarationWrap

if (messageContent.length > 2_000) {
this.content = "*mensagem grande demais*"
files += FileUpload.fromData(messageContent.toByteArray(Charsets.UTF_8).inputStream(), "description.txt")
} else {
this.content = messageContent
}
Expand Down Expand Up @@ -291,6 +292,7 @@ class DailyCheckCommand(val helper: LorittaHelper) : SlashCommandDeclarationWrap

if (messageContent.length > 2_000) {
this.content = "*mensagem grande demais*"
files += FileUpload.fromData(messageContent.toByteArray(Charsets.UTF_8).inputStream(), "description.txt")
} else {
this.content = messageContent
}
Expand Down Expand Up @@ -419,6 +421,7 @@ class DailyCheckCommand(val helper: LorittaHelper) : SlashCommandDeclarationWrap

if (messageContent.length > 2_000) {
this.content = "*mensagem grande demais*"
files += FileUpload.fromData(messageContent.toByteArray(Charsets.UTF_8).inputStream(), "description.txt")
} else {
this.content = messageContent
}
Expand Down

0 comments on commit 5f35f0f

Please sign in to comment.