Skip to content

Commit 0a120ab

Browse files
committed
feat: Add static limits & templates properties.
1 parent 2c1b089 commit 0a120ab

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/BetterEmbed.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ export class BetterEmbed extends MessageEmbed {
8080

8181
return new BetterEmbed(setValues(template as AnyObject, values));
8282
}
83+
84+
public static LENGTH_LIMITS = limits;
85+
86+
public static TEMPLATES = templates;
8387

8488
public checkSize() {
8589
if (this.title && this.title.length > limits.title) throw new RangeError(`'embed.title' is too long: ${this.title.length} (max: ${limits.title}).`);

0 commit comments

Comments
 (0)