#can you await line 38

1 messages · Page 1 of 1 (latest)

novel stirrup
#

/home/runner/Operation-Management-FatalIntentionalGigabyte/commands/tr.js:38
await interaction.reply({ embeds: [embed] });
^^^^^

SyntaxError: await is only valid in async functions and the top level bodies of modules

hard prairie
#

make sure that its in an asyncfunction

#

on line 28, you're making the callback a normal non async function

#

replace function with async function

novel stirrup
#

did that still happens @hard prairie

hard prairie
novel stirrup
hard prairie
novel stirrup
#

/home/runner/Operation-Management-FatalIntentionalGigabyte/commands/tr.js:38
await interaction.reply({ embeds: [embed] });
^^^^^

SyntaxError: await is only valid in async functions and the top level bodies of modules.