@@ -38,14 +38,14 @@ module.exports = {
38
38
. setName ( "steps" )
39
39
. setDescription ( "The Number of Steps to Use" )
40
40
. setMinValue ( 1 )
41
- . setMaxValue ( 30 ) ,
41
+ . setMaxValue ( 50 ) ,
42
42
)
43
43
. addIntegerOption ( ( option ) =>
44
44
option
45
45
. setName ( "cfg-scale" )
46
46
. setDescription ( "The CFG Scale" )
47
47
. setMinValue ( 1 )
48
- . setMaxValue ( 30 ) ,
48
+ . setMaxValue ( 20 ) ,
49
49
)
50
50
. addIntegerOption ( ( option ) =>
51
51
option . setName ( "seed" ) . setDescription ( "The Seed" ) . setMinValue ( - 1 ) ,
@@ -108,6 +108,23 @@ module.exports = {
108
108
{ name : "PLMS" , value : "PLMS" } ,
109
109
{ name : "UniPC" , value : "UniPC" } ,
110
110
) ,
111
+ )
112
+ . addBooleanOption ( ( o ) =>
113
+ o . setName ( "upscale" ) . setDescription ( "Enable 2x Upscale" ) ,
114
+ )
115
+ . addIntegerOption ( ( option ) =>
116
+ option
117
+ . setName ( "width" )
118
+ . setDescription ( "The Width of the Image" )
119
+ . setMinValue ( 1 )
120
+ . setMaxValue ( 1024 ) ,
121
+ )
122
+ . addIntegerOption ( ( option ) =>
123
+ option
124
+ . setName ( "height" )
125
+ . setDescription ( "The Height of the Image" )
126
+ . setMinValue ( 1 )
127
+ . setMaxValue ( 1024 ) ,
111
128
) ,
112
129
113
130
async execute ( interaction ) {
@@ -135,6 +152,9 @@ module.exports = {
135
152
const cfg_scale = interaction . options . getInteger ( "cfg-scale" ) ;
136
153
const seed = interaction . options . getInteger ( "seed" ) ;
137
154
const sampler = interaction . options . getString ( "sampler" ) ;
155
+ const upscale = interaction . options . getBoolean ( "upscale" ) ;
156
+ const width = interaction . options . getInteger ( "width" ) ;
157
+ const height = interaction . options . getInteger ( "height" ) ;
138
158
139
159
let prompt = interaction . options . getString ( "prompt" ) ;
140
160
let negative_prompt = interaction . options . getString ( "negative-prompt" ) ;
@@ -231,6 +251,9 @@ module.exports = {
231
251
...( sampler && { sampler : sampler } ) ,
232
252
...( cfg_scale && { cfg_scale : cfg_scale } ) ,
233
253
...( seed && { seed : seed } ) ,
254
+ ...( upscale && { upscale : upscale } ) ,
255
+ ...( width && { width : width } ) ,
256
+ ...( height && { height : height } ) ,
234
257
} ;
235
258
236
259
try {
0 commit comments