mainly just fixed voiceStateUpdate, some bugs
This commit is contained in:
parent
921febf278
commit
8c18c71d09
4 changed files with 51 additions and 17 deletions
|
@ -23,7 +23,7 @@ client.on("guildMemberAdd", (member) => {
|
|||
});
|
||||
|
||||
client.on("messageDelete", async (message) => {
|
||||
events.messageDelete(message);
|
||||
events.messageDelete(message, client);
|
||||
});
|
||||
|
||||
client.on("messageCreate", async (message) => {
|
||||
|
@ -31,11 +31,11 @@ client.on("messageCreate", async (message) => {
|
|||
});
|
||||
|
||||
client.on("interactionCreate", (interaction) => {
|
||||
events.interactionCreate(interaction);
|
||||
events.interactionCreate(interaction, client);
|
||||
});
|
||||
|
||||
client.on("voiceStateUpdate", (oldState, newState) => {
|
||||
events.voiceStateUpdate(oldState, newState);
|
||||
events.voiceStateUpdate(oldState, newState, client);
|
||||
});
|
||||
|
||||
register();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue