mirror of
https://github.com/cheveguerra/whatsapp-web.js.git
synced 2026-04-19 20:19:14 +00:00
chore: added index.js for structures (#91)
- Allows for a cleaner integration (imo) in Client.js
This commit is contained in:
@@ -10,10 +10,7 @@ const { WhatsWebURL, UserAgent, DefaultOptions, Events, WAState } = require('./u
|
|||||||
const { ExposeStore, LoadUtils } = require('./util/Injected');
|
const { ExposeStore, LoadUtils } = require('./util/Injected');
|
||||||
const ChatFactory = require('./factories/ChatFactory');
|
const ChatFactory = require('./factories/ChatFactory');
|
||||||
const ContactFactory = require('./factories/ContactFactory');
|
const ContactFactory = require('./factories/ContactFactory');
|
||||||
const ClientInfo = require('./structures/ClientInfo');
|
const { ClientInfo, Message, MessageMedia, Location } = require('./structures');
|
||||||
const Message = require('./structures/Message');
|
|
||||||
const MessageMedia = require('./structures/MessageMedia');
|
|
||||||
const Location = require('./structures/Location');
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Starting point for interacting with the WhatsApp Web API
|
* Starting point for interacting with the WhatsApp Web API
|
||||||
|
|||||||
13
src/structures/index.js
Normal file
13
src/structures/index.js
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
module.exports = {
|
||||||
|
Base: require('./Base'),
|
||||||
|
BusinessContact: require('./BusinessContact'),
|
||||||
|
Chat: require('./Chat'),
|
||||||
|
ClientInfo: require('./ClientInfo'),
|
||||||
|
Contact: require('./Contact'),
|
||||||
|
GroupChat: require('./GroupChat'),
|
||||||
|
Location: require('./Location'),
|
||||||
|
Message: require('./Message'),
|
||||||
|
MessageMedia: require('./MessageMedia'),
|
||||||
|
PrivateChat: require('./PrivateChat'),
|
||||||
|
PrivateContact: require('./PrivateContact'),
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user