Skip to content

Commit

Permalink
fix: slice command descriptions for cmd select menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Mirasaki committed May 4, 2023
1 parent bed40d4 commit 195a5e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handlers/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ const getCommandSelectMenu = (member) => {
// Getting our structured array of objects
let cmdOutput = workingCmdMap.map((cmd, identifier) => ({
label: cmd.data.name,
description: cmd.data.description,
description: cmd.data.description.length > 100 ? `${ cmd.data.description.slice(0, 97) }...` : cmd.data.description,
value: identifier
}));

Expand Down

0 comments on commit 195a5e9

Please sign in to comment.