-
-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* UserStore refactor * Create ChannelStore, remove redundant methods in ClientDataManager * Create GuildStore * Emoji stuff * Use a Base class where possible to reduce code duplication * Remove unnecessary comments from ChannelStore * Add Base._clone(); * Remove unused ClientDataManager methods * Refactor some more stuff * ESLint * Move Client#fetchUser to client.users.fetch * Remove .has checks and just see if .get is truthy * Fix guild member chunk error * ESLint * Fix typo * Fix channel storing for user bots * Remove ClientDataManager * GuildChannelStore * Reduce use of Util.cloneObject * and this one too * update typings * Fix MessageUpdate handling (#1507) * Fix role updates (probably fixes #1525) * fix for eslint * Address some of appell's comments * Use debug constant * start message store crap if it's ugly tell me later k * fix that * message store but works:tm: * clean up guild stuff * clean up channel store stuff * clean up channel event handling * does this message stuff work? find out soon in the next episode of dIsCoRd.Js * eslint * emojis * emojis and reactions * hi my name is eslint and im A LIL SHIT * so i forgot this huh * user stuff * Fix @Class * Fix message stuff * Fix user store docs * Document all the bases * fix the super things * tidy up remove * fix textbasedchannel * fix that too * fix emoji store * make voice state stuff less ugly * make voice states even less ugly * make members less bad * fix bug * fix that too * fix reactions * how was this broken for so long * role store * remove super._patch from UserConnection * Rename UserProfile#setup to _patch * remove unnecessary super calls * update docgen dep (pls fix travis thx) * doc messagestore * fix docs * message store docs * things * DOCS PLS * more things * Document TextBasedChannel#messages as a MessageStore * Rebase * All the stores!
- @discordjs/ws@2.0.1
- @discordjs/ws@2.0.0
- @discordjs/ws@1.2.1
- @discordjs/ws@1.2.0
- @discordjs/ws@1.1.1
- @discordjs/ws@1.1.0
- @discordjs/ws@1.0.2
- @discordjs/ws@1.0.1
- @discordjs/ws@1.0.0
- @discordjs/ws@0.8.3
- @discordjs/ws@0.8.2
- @discordjs/ws@0.8.1
- @discordjs/ws@0.8.0
- @discordjs/ws@0.7.0
- @discordjs/ws@0.6.0
- @discordjs/ws@0.5.0
- @discordjs/ws@0.4.1
- @discordjs/ws@0.4.0
- @discordjs/ws@0.3.0
- @discordjs/ws@0.2.0
- @discordjs/ws@0.1.0
- @discordjs/voice@0.18.0
- @discordjs/voice@0.17.0
- @discordjs/voice@0.16.1
- @discordjs/voice@0.16.0
- @discordjs/voice@0.15.0
- @discordjs/voice@0.14.0
- @discordjs/voice@0.13.0
- @discordjs/voice@0.11.0
- @discordjs/voice@0.10.0
- @discordjs/voice@0.9.0
- @discordjs/voice@0.8.0
- @discordjs/voice@0.7.5
- @discordjs/util@1.1.1
- @discordjs/util@1.1.0
- @discordjs/util@1.0.2
- @discordjs/util@1.0.1
- @discordjs/util@1.0.0
- @discordjs/util@0.3.1
- @discordjs/util@0.3.0
- @discordjs/util@0.2.0
- @discordjs/util@0.1.0
- @discordjs/rest@2.4.3
- @discordjs/rest@2.4.2
- @discordjs/rest@2.4.1
- @discordjs/rest@2.4.0
- @discordjs/rest@2.3.0
- @discordjs/rest@2.2.0
- @discordjs/rest@2.1.0
- @discordjs/rest@2.0.1
- @discordjs/rest@2.0.0
- @discordjs/rest@1.7.1
- @discordjs/rest@1.7.0
- @discordjs/rest@1.6.0
- @discordjs/rest@1.5.0
- @discordjs/rest@1.4.0
- @discordjs/rest@1.3.0
- @discordjs/rest@1.2.0
- @discordjs/rest@1.1.0
- @discordjs/rest@1.0.1
- @discordjs/rest@1.0.0
- @discordjs/rest@0.6.0
- @discordjs/rest@0.5.0
- @discordjs/rest@0.4.0
- @discordjs/rest@0.3.0
- @discordjs/rest@0.2.0
- @discordjs/proxy@2.1.1
- @discordjs/proxy@2.1.0
- @discordjs/proxy@2.0.2
- @discordjs/proxy@2.0.1
- @discordjs/proxy@2.0.0
- @discordjs/proxy@1.4.1
- @discordjs/proxy@1.4.0
- @discordjs/proxy@1.3.0
- @discordjs/proxy@1.2.1
- @discordjs/proxy@1.2.0
- @discordjs/proxy@1.1.0
- @discordjs/proxy@1.0.1
- @discordjs/proxy@1.0.0
- @discordjs/formatters@0.6.0
- @discordjs/formatters@0.5.0
- @discordjs/formatters@0.4.0
- @discordjs/formatters@0.3.3
- @discordjs/formatters@0.3.2
- @discordjs/formatters@0.3.1
- @discordjs/formatters@0.3.0
- @discordjs/formatters@0.2.0
- @discordjs/formatters@0.1.0
- @discordjs/core@2.0.1
- @discordjs/core@2.0.0
- @discordjs/core@1.2.0
- @discordjs/core@1.1.1
- @discordjs/core@1.1.0
- @discordjs/core@1.0.1
- @discordjs/core@1.0.0
- @discordjs/core@0.6.0
- @discordjs/core@0.5.2
- @discordjs/core@0.5.1
- @discordjs/core@0.5.0
- @discordjs/core@0.4.0
- @discordjs/core@0.3.0
- @discordjs/core@0.2.0
- @discordjs/collection@2.1.1
- @discordjs/collection@2.1.0
- @discordjs/collection@2.0.0
- @discordjs/collection@1.5.3
- @discordjs/collection@1.5.2
- @discordjs/collection@1.5.1
- @discordjs/collection@1.5.0
- @discordjs/collection@1.4.0
- @discordjs/collection@1.3.0
- @discordjs/collection@1.2.0
- @discordjs/collection@1.1.0
- @discordjs/collection@1.0.1
- @discordjs/collection@1.0.0
- @discordjs/collection@0.8.0
- @discordjs/collection@0.7.0
- @discordjs/collection@0.6.0
- @discordjs/collection@0.5.0
- @discordjs/collection@0.4.0
- @discordjs/builders@1.10.1
- @discordjs/builders@1.10.0
- @discordjs/builders@1.9.0
- @discordjs/builders@1.8.2
- @discordjs/builders@1.8.1
- @discordjs/builders@1.8.0
- @discordjs/builders@1.7.0
- @discordjs/builders@1.6.5
- @discordjs/builders@1.6.4
- @discordjs/builders@1.6.3
- @discordjs/builders@1.6.2
- @discordjs/builders@1.6.1
- @discordjs/builders@1.6.0
- @discordjs/builders@1.5.0
- @discordjs/builders@1.4.0
- @discordjs/builders@1.3.0
- @discordjs/builders@1.2.0
- @discordjs/builders@1.1.0
- @discordjs/builders@1.0.0
- @discordjs/builders@0.16.0
- @discordjs/builders@0.15.0
- @discordjs/builders@0.14.0
- @discordjs/builders@0.13.0
- @discordjs/builders@0.12.0
- @discordjs/builders@0.11.0
- @discordjs/brokers@1.0.0
- @discordjs/brokers@0.3.0
- @discordjs/brokers@0.2.2
- @discordjs/brokers@0.2.1
- @discordjs/brokers@0.2.0
- @discordjs/brokers@0.1.0
- create-discord-bot@1.0.0
- create-discord-bot@0.3.1
- create-discord-bot@0.3.0
- create-discord-bot@0.2.3
- create-discord-bot@0.2.2
- create-discord-bot@0.2.1
- create-discord-bot@0.2.0
- create-discord-bot@0.1.0
- 14.18.0
- 14.17.3
- 14.17.2
- 14.17.1
- 14.17.0
- 14.16.3
- 14.16.2
- 14.16.1
- 14.16.0
- 14.15.3
- 14.15.2
- 14.15.1
- 14.15.0
- 14.14.1
- 14.14.0
- 14.13.0
- 14.12.1
- 14.12.0
- 14.11.0
- 14.10.2
- 14.10.1
- 14.10.0
- 14.9.0
- 14.8.0
- 14.7.1
- 14.7.0
- 14.6.0
- 14.5.0
- 14.4.0
- 14.3.0
- 14.2.0
- 14.1.2
- 14.1.1
- 14.1.0
- 14.0.3
- 14.0.2
- 14.0.1
- 14.0.0
- 13.17.1
- 13.17.0
- 13.16.0
- 13.15.1
- 13.15.0
- 13.14.0
- 13.13.1
- 13.13.0
- 13.12.0
- 13.11.0
- 13.10.3
- 13.10.2
- 13.10.1
- 13.10.0
- 13.9.2
- 13.9.1
- 13.9.0
- 13.8.1
- 13.8.0
- 13.7.0
- 13.6.0
- 13.5.1
- 13.5.0
- 13.4.0
- 13.3.1
- 13.3.0
- 13.2.0
- 13.1.0
- 13.0.1
- 13.0.0
- 12.5.3
- 12.5.2
- 12.5.1
- 12.5.0
- 12.4.1
- 12.4.0
- 12.3.1
- 12.3.0
- 12.2.0
- 12.1.1
- 12.1.0
- 12.0.2
- 12.0.1
- 12.0.0
Showing
80 changed files
with
837 additions
and
840 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"plugins": ["node_modules/jsdoc-strip-async-await"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,20 @@ | ||
const Action = require('./Action'); | ||
const Constants = require('../../util/Constants'); | ||
const Util = require('../../util/Util'); | ||
|
||
class ChannelUpdateAction extends Action { | ||
handle(data) { | ||
const client = this.client; | ||
|
||
const channel = client.channels.get(data.id); | ||
if (channel) { | ||
const oldChannel = Util.cloneObject(channel); | ||
channel.setup(data); | ||
client.emit(Constants.Events.CHANNEL_UPDATE, oldChannel, channel); | ||
const old = channel._update(data); | ||
return { | ||
old: oldChannel, | ||
old, | ||
updated: channel, | ||
}; | ||
} | ||
|
||
return { | ||
old: null, | ||
updated: null, | ||
}; | ||
return {}; | ||
} | ||
} | ||
|
||
/** | ||
* Emitted whenever a channel is updated - e.g. name change, topic change. | ||
* @event Client#channelUpdate | ||
* @param {Channel} oldChannel The channel before the update | ||
* @param {Channel} newChannel The channel after the update | ||
*/ | ||
|
||
module.exports = ChannelUpdateAction; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.