mirror of
https://github.com/danbulant/discord.js
synced 2026-05-24 20:42:27 +00:00
Expose Presence and Game structures
This commit is contained in:
parent
534d7af8c3
commit
f1cb39a319
6 changed files with 8 additions and 5 deletions
File diff suppressed because one or more lines are too long
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
|
|
|||
|
|
@ -90,4 +90,5 @@ class Presence {
|
|||
}
|
||||
}
|
||||
|
||||
module.exports = Presence;
|
||||
exports.Presence = Presence;
|
||||
exports.Game = Game;
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue