Skip to content
This repository has been archived by the owner on Dec 14, 2024. It is now read-only.

Commit

Permalink
[FIX] Prefix - 32 char long
Browse files Browse the repository at this point in the history
  • Loading branch information
wizardlink committed Jan 27, 2018
1 parent 4283394 commit 2821ff2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/commands/settings/prefix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ class PrefixCommand extends Command {
newPrefix = newPrefix.slice(1, -1);
}

if (newPrefix.length > 32) return 'the prefix you inputted is too long! Try a different one.';

// Set as new one
return [newPrefix];
}
Expand Down

0 comments on commit 2821ff2

Please sign in to comment.