mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-15 02:29:28 +03:00
fix: i forgot how async/await worked
This commit is contained in:
+3
-2
@@ -35,11 +35,12 @@ client.on("interactionCreate", async (interaction) => {
|
||||
const requestingUser = await GetUserAndTokenForDiscordID(interaction.user.id);
|
||||
|
||||
if (!requestingUser) {
|
||||
return RequireUserAuth(interaction);
|
||||
await RequireUserAuth(interaction);
|
||||
return;
|
||||
}
|
||||
|
||||
if (interaction.isCommand()) {
|
||||
return handleIsCommand(interaction, requestingUser);
|
||||
await handleIsCommand(interaction, requestingUser);
|
||||
}
|
||||
} catch (e) {
|
||||
logger.error("Failed to run interaction.", { interaction });
|
||||
|
||||
Reference in New Issue
Block a user