MCPcopy Create free account
hub / github.com/esmBot/esmBot / addTextParam

Method addTextParam

src/classes/mediaCommand.ts:228–239  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

226 }
227
228 static addTextParam() {
229 this.flags.unshift({
230 name: "text",
231 nameLocalizations: getAllLocalizations("image.flagNames.text"),
232 type: Constants.ApplicationCommandOptionTypes.STRING,
233 description: "The text to put on the image",
234 descriptionLocalizations: getAllLocalizations("image.flags.text"),
235 maxLength: 4096,
236 required: !this.textOptional,
237 classic: true,
238 });
239 }
240
241 static init() {
242 this.flags = [];

Callers 13

initMethod · 0.80
initMethod · 0.80
initMethod · 0.80
initMethod · 0.80
initMethod · 0.80
initMethod · 0.80
initMethod · 0.80
initMethod · 0.80
initMethod · 0.80
initMethod · 0.80
initMethod · 0.80
initMethod · 0.80

Calls 1

getAllLocalizationsFunction · 0.85

Tested by

no test coverage detected