()
| 239 | } |
| 240 | |
| 241 | static init() { |
| 242 | this.flags = []; |
| 243 | if (this.requiresImage) { |
| 244 | this.flags.push( |
| 245 | { |
| 246 | name: "image", |
| 247 | nameLocalizations: getAllLocalizations("image.flagNames.image"), |
| 248 | type: Constants.ApplicationCommandOptionTypes.ATTACHMENT, |
| 249 | description: "An image/GIF attachment", |
| 250 | descriptionLocalizations: getAllLocalizations("image.flags.image"), |
| 251 | }, |
| 252 | { |
| 253 | name: "link", |
| 254 | nameLocalizations: getAllLocalizations("image.flagNames.link"), |
| 255 | type: Constants.ApplicationCommandOptionTypes.STRING, |
| 256 | description: "An image/GIF URL", |
| 257 | descriptionLocalizations: getAllLocalizations("image.flags.link"), |
| 258 | }, |
| 259 | ); |
| 260 | } |
| 261 | if (!this.alwaysGIF) { |
| 262 | this.flags.push({ |
| 263 | name: "togif", |
| 264 | nameLocalizations: getAllLocalizations("image.flagNames.togif"), |
| 265 | type: Constants.ApplicationCommandOptionTypes.BOOLEAN, |
| 266 | description: "Force GIF output", |
| 267 | descriptionLocalizations: getAllLocalizations("image.flags.togif"), |
| 268 | }); |
| 269 | } |
| 270 | |
| 271 | this.flags.push( |
| 272 | { |
| 273 | name: "spoiler", |
| 274 | nameLocalizations: getAllLocalizations("image.flagNames.spoiler"), |
| 275 | type: Constants.ApplicationCommandOptionTypes.BOOLEAN, |
| 276 | description: "Attempt to send output as a spoiler", |
| 277 | descriptionLocalizations: getAllLocalizations("image.flags.spoiler"), |
| 278 | }, |
| 279 | { |
| 280 | name: "ephemeral", |
| 281 | nameLocalizations: getAllLocalizations("image.flagNames.ephemeral"), |
| 282 | type: Constants.ApplicationCommandOptionTypes.BOOLEAN, |
| 283 | description: "Attempt to send output as an ephemeral/temporary response", |
| 284 | descriptionLocalizations: getAllLocalizations("image.flags.ephemeral"), |
| 285 | }, |
| 286 | ); |
| 287 | return this; |
| 288 | } |
| 289 | |
| 290 | static allowedFonts = [ |
| 291 | "futura", |
nothing calls this directly
no test coverage detected