File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed
Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change 1+ import { MessageEmbed } from 'discord.js' ;
2+
3+ export default class BetterEmbed extends MessageEmbed {
4+ public static limits = {
5+ author : {
6+ name : 256 ,
7+ } ,
8+ title : 256 ,
9+ description : 2048 ,
10+ footer : {
11+ text : 2048 ,
12+ } ,
13+ fields : {
14+ size : 25 ,
15+ name : 256 ,
16+ value : 1024 ,
17+ } ,
18+ }
19+
20+ public static templates = {
21+ basic : {
22+ footer : {
23+ text : '${client.user.username}' ,
24+ iconURL : '${client.user.displayAvatarURL()}' ,
25+ } ,
26+ timestamp : new Date ( ) ,
27+ } ,
28+ color : {
29+ color : '#4b5afd' ,
30+ } ,
31+ get complete ( ) {
32+ return {
33+ ...this . basic ,
34+ ...this . color ,
35+ title : '${title}' ,
36+ description : '${description}' ,
37+ } ;
38+ } ,
39+ get image ( ) {
40+ return {
41+ ...this . complete ,
42+ image : {
43+ url : '${image}' ,
44+ } ,
45+ } ;
46+ } ,
47+ } ;
48+ }
You can’t perform that action at this time.
0 commit comments