Expose Presence and Game structures

This commit is contained in:
Amish Shah
2016-09-25 20:17:26 +01:00
parent 534d7af8c3
commit f1cb39a319
6 changed files with 8 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@@ -9,7 +9,7 @@ const ClientVoiceManager = require('./voice/ClientVoiceManager');
const WebSocketManager = require('./websocket/WebSocketManager');
const ActionsManager = require('./actions/ActionsManager');
const Collection = require('../util/Collection');
const Presence = require('../structures/Presence');
const Presence = require('../structures/Presence').Presence;
/**
* The starting point for making a Discord Bot.

View File

@@ -27,6 +27,8 @@ module.exports = {
TextChannel: require('./structures/TextChannel'),
User: require('./structures/User'),
VoiceChannel: require('./structures/VoiceChannel'),
Presence: require('./structures/Presence').Presence,
Game: require('./structures/Presence').Game,
version: require(path.join(__dirname, '..', 'package')).version,
};

View File

@@ -1,7 +1,7 @@
const User = require('./User');
const Role = require('./Role');
const Emoji = require('./Emoji');
const Presence = require('./Presence');
const Presence = require('./Presence').Presence;
const GuildMember = require('./GuildMember');
const Constants = require('../util/Constants');
const Collection = require('../util/Collection');

View File

@@ -90,4 +90,5 @@ class Presence {
}
}
module.exports = Presence;
exports.Presence = Presence;
exports.Game = Game;

View File

@@ -1,6 +1,6 @@
const TextBasedChannel = require('./interface/TextBasedChannel');
const Constants = require('../util/Constants');
const Presence = require('./Presence');
const Presence = require('./Presence').Presence;
/**
* Represents a User on Discord.