mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-09 14:43:05 -04:00
update tiktok command
This commit is contained in:
parent
4f1d288d3e
commit
643c2f8bf4
1 changed files with 5 additions and 2 deletions
|
@ -22,14 +22,17 @@ module.exports = {
|
||||||
name: 'text',
|
name: 'text',
|
||||||
description: 'Text',
|
description: 'Text',
|
||||||
type: ApplicationCommandOptionTypes.STRING,
|
type: ApplicationCommandOptionTypes.STRING,
|
||||||
required: true,
|
required: true
|
||||||
maxLength: 100
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
run: async (context, args) => {
|
run: async (context, args) => {
|
||||||
try {
|
try {
|
||||||
await context.respond({ data: {}, type: InteractionCallbackTypes.DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE })
|
await context.respond({ data: {}, type: InteractionCallbackTypes.DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE })
|
||||||
|
|
||||||
|
if(args.text.length >= 101) return await context.editOrRespond({
|
||||||
|
embeds: [createEmbed("warning", context, "Text too long (must be 100 or shorter).")]
|
||||||
|
})
|
||||||
|
|
||||||
let audio = await tiktok(context, args.text, args.voice)
|
let audio = await tiktok(context, args.text, args.voice)
|
||||||
|
|
||||||
await context.editOrRespond({
|
await context.editOrRespond({
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue