mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 01:23:31 +01:00
feat(Client): add support for INVITE_CREATE and INVITE_DELETE events (#3720)
* Add support for new Invite events * Merge typings for events Co-Authored-By: Sugden <leoaustin675@gmail.com> * Add warning about requiring permissions * Null check channel and guild * fix: .guilds not .channels
This commit is contained in:
5
src/client/websocket/handlers/INVITE_CREATE.js
Normal file
5
src/client/websocket/handlers/INVITE_CREATE.js
Normal file
@@ -0,0 +1,5 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = (client, packet) => {
|
||||
client.actions.InviteCreate.handle(packet.d);
|
||||
};
|
||||
5
src/client/websocket/handlers/INVITE_DELETE.js
Normal file
5
src/client/websocket/handlers/INVITE_DELETE.js
Normal file
@@ -0,0 +1,5 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = (client, packet) => {
|
||||
client.actions.InviteDelete.handle(packet.d);
|
||||
};
|
||||
Reference in New Issue
Block a user