feat: Music support #62

Merged
Anri merged 43 commits from feat/music into main 2023-02-12 01:11:10 +01:00
Showing only changes of commit b9ddfc5c22 - Show all commits

View file

@ -29,6 +29,12 @@ export default async (client: Client) => {
const event_type = event_type_ext.join(".");
if (event_category == "player") {
if (once) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
return client.player.once(event_type as keyof PlayerEvents, (...args: any) =>
execute(...args, client)
);
}
// eslint-disable-next-line @typescript-eslint/no-explicit-any
return client.player.on(event_type as keyof PlayerEvents, (...args: any) =>
execute(...args, client)