Skip to content

Commit

Permalink
forgot to call trim()
Browse files Browse the repository at this point in the history
  • Loading branch information
daniwasonline committed May 19, 2024
1 parent 1359b0b commit 51ecbe4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util/models/interactions.js
Original file line number Diff line number Diff line change
Expand Up @@ -391,9 +391,9 @@ export class InteractionMessageEvent {

return responseMsg
.edit({
content: final?.trim?.length >= 2000 ? "" : final,
content: final?.trim()?.length >= 2000 ? "" : final,
files: [
final.trim().length >= 2000
final?.trim()?.length >= 2000
? {
attachment: Buffer.from(final, "utf-8"),
name: "response.md",
Expand Down

0 comments on commit 51ecbe4

Please sign in to comment.