Fix missing async
This commit is contained in:
parent
fec4dc45ef
commit
977f6e2a21
|
@ -2,6 +2,7 @@ module.exports = {
|
||||||
event: require('path').parse(__filename).name,
|
event: require('path').parse(__filename).name,
|
||||||
once: false,
|
once: false,
|
||||||
listener: (client, config) =>
|
listener: (client, config) =>
|
||||||
|
async (interaction) => {
|
||||||
try {
|
try {
|
||||||
await client.commands.get(interaction.commandName)?.parseInteraction(client, config, interaction);
|
await client.commands.get(interaction.commandName)?.parseInteraction(client, config, interaction);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
@ -19,5 +20,4 @@ module.exports = {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
;
|
|
||||||
|
|
Reference in New Issue