mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 06:03:04 -04:00
maybe without debug logs
This commit is contained in:
parent
28af9c5cb5
commit
13e2437b69
1 changed files with 0 additions and 3 deletions
|
@ -40,7 +40,6 @@ module.exports = {
|
||||||
run: async (ctx) => {
|
run: async (ctx) => {
|
||||||
|
|
||||||
try{
|
try{
|
||||||
console.log("translating")
|
|
||||||
if (ctx.userId !== context.userId) return await ctx.respond(InteractionCallbackTypes.DEFERRED_UPDATE_MESSAGE);
|
if (ctx.userId !== context.userId) return await ctx.respond(InteractionCallbackTypes.DEFERRED_UPDATE_MESSAGE);
|
||||||
|
|
||||||
let translate = await googleTranslate(context, message.content, ctx.data.values[0], "auto")
|
let translate = await googleTranslate(context, message.content, ctx.data.values[0], "auto")
|
||||||
|
@ -51,8 +50,6 @@ module.exports = {
|
||||||
for (let i = 0; i < components.components[0].components[0].options.length; i++) {
|
for (let i = 0; i < components.components[0].components[0].options.length; i++) {
|
||||||
components.components[0].components[0].options[i].default = (components.components[0].components[0].options[i].value === ctx.data.values[0])
|
components.components[0].components[0].options[i].default = (components.components[0].components[0].options[i].value === ctx.data.values[0])
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log("translated")
|
|
||||||
|
|
||||||
await ctx.editOrRespond({
|
await ctx.editOrRespond({
|
||||||
embeds: [{
|
embeds: [{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue