File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,17 +39,7 @@ export default {
3939 } )
4040
4141 if ( ! message ) {
42- message = {
43- GuildId : interaction . guild . id ,
44- Name : "no-template" ,
45- IsComponentsV2Message : false ,
46- ComponentJSON : null ,
47- OtherEmbeds : [ ] ,
48- // TODO: Add JSON
49- EmbedJSON : JSON . stringify ( { } ) ,
50- Content : null ,
51- Id : 1
52- }
42+ return
5343 }
5444 const list = data . Levels . slice ( currentIndex , currentIndex + 5 ) ;
5545
Original file line number Diff line number Diff line change @@ -52,17 +52,7 @@ export default {
5252 } )
5353
5454 if ( ! message ) {
55- message = {
56- GuildId : interaction . guild . id ,
57- Name : "no-template" ,
58- IsComponentsV2Message : false ,
59- ComponentJSON : null ,
60- OtherEmbeds : [ ] ,
61- // TODO: Add JSON
62- EmbedJSON : JSON . stringify ( { } ) ,
63- Content : null ,
64- Id : 1
65- }
55+ return
6656 }
6757 const list = data . Levels . slice ( currentIndex , currentIndex + 5 ) ;
6858
Original file line number Diff line number Diff line change @@ -89,17 +89,7 @@ export default {
8989 } )
9090
9191 if ( ! message ) {
92- message = {
93- GuildId : interaction . guild . id ,
94- Name : "no-template" ,
95- IsComponentsV2Message : false ,
96- ComponentJSON : null ,
97- OtherEmbeds : [ ] ,
98- // TODO: Add JSON
99- EmbedJSON : JSON . stringify ( { } ) ,
100- Content : null ,
101- Id : 1
102- }
92+ return
10393 }
10494
10595 const rankImage = await generateLevelCardImage ( user , interaction . guildId )
You can’t perform that action at this time.
0 commit comments