Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: stage instances #5749

Merged
merged 45 commits into from
Jun 14, 2021
Merged
Changes from 1 commit
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
cb877fc
feat: stage instance
iShibi Jun 4, 2021
a53d10f
docs: document StageInstance and add PrivacyLevel typedef
iShibi Jun 4, 2021
c6e7826
feat: add action handler, manager, and typings
iShibi Jun 4, 2021
bb6a624
types: add typings for stageInstanceCreate event
iShibi Jun 4, 2021
ebb6fc0
refactor: move stageInstanceManager from StageChannel to Guild
iShibi Jun 5, 2021
5de6659
feat: add stageInstanceUpdate event
iShibi Jun 5, 2021
a8c6d87
refactor: pass client as first param to StageInstance
iShibi Jun 5, 2021
e9458ae
feat(StageInstance): add _patch method
iShibi Jun 5, 2021
772be7c
feat: add stageInstanceDelete event
iShibi Jun 5, 2021
29e9d2e
feat(StageInstanceManager): add method to create a stage instance
iShibi Jun 5, 2021
e15a76a
types(Guild): add typings for stageInstances prop
iShibi Jun 5, 2021
df9987f
feat(StageInstanceManager): add method to fetch a stage instance
iShibi Jun 6, 2021
0305c6b
fix(StageInstanceManager): #create emit duplicate events
iShibi Jun 6, 2021
6fc2cdb
feat(StageInstanceManager): add method to update a stage instance
iShibi Jun 6, 2021
b0e674f
feat(StageInstanceManager): add method to delete a stage instance
iShibi Jun 6, 2021
5e0cf46
fix(StageInstanceManager): #delete returns void as promise
iShibi Jun 6, 2021
6178471
feat(StageInstance): add channel prop and guild getter
iShibi Jun 7, 2021
da6d9e9
feat(StageChannel): add getter for associated stage instance
iShibi Jun 7, 2021
81b5e95
fix(StageInstance): #channel undefined for up & del events when uncached
iShibi Jun 7, 2021
0744a4a
feat(Guild): cache stage instances on GUILD_CREATE event
iShibi Jun 7, 2021
9319fb1
feat(StageInstance): add method to update stage instance
iShibi Jun 7, 2021
197c3ba
fix(StageInstance): pass correct channel id to #update
iShibi Jun 7, 2021
2c544b8
refactor(StageInstanceManager): make cache second param in #add
iShibi Jun 7, 2021
805d81f
fix: old and new stage instance are same for update event
iShibi Jun 7, 2021
9429864
feat(StageInstance): add method to delete the stage instance
iShibi Jun 7, 2021
e2ef323
fix(StageInstance): set #deleted of clone to true in delete method
iShibi Jun 8, 2021
5137991
refactor(StageInstance): make channel prop a getter
iShibi Jun 8, 2021
c11f81a
feat(GuildAuditLogs): add support for logs related to StageInstance
iShibi Jun 8, 2021
e7a1a68
refactor: add suggestions from the review
iShibi Jun 8, 2021
ae90203
refactor(StageInstanceManager): remove redundant add method
iShibi Jun 8, 2021
8c7bfb9
types: update audit logs typings related to stage instance
iShibi Jun 8, 2021
e826560
refactor: revert changes that are out of scope of the PR
iShibi Jun 8, 2021
51f6009
refactor: refactor action handlers for stage instance events
iShibi Jun 8, 2021
b81b1e8
feat(StageInstance): add setTopic method and some refactoring
iShibi Jun 9, 2021
0ce8cb9
feat(StageInstance): add creation time related props
iShibi Jun 9, 2021
f7b2f89
docs: add basic examples for new methods
iShibi Jun 9, 2021
4387b6b
docs: make variables in examples more explicit
iShibi Jun 9, 2021
aa7fff9
docs(AuditLogEntryTarget): revert the unintended change
iShibi Jun 12, 2021
0b01c75
refactor: use BaseFetchOptions
iShibi Jun 12, 2021
ad6ee76
docs(StageInstanceManager): document the manager
iShibi Jun 13, 2021
32f2571
refactor(StageInstance): use resolve in channel & guild getters
iShibi Jun 13, 2021
2793ae9
refactor(GuildAuditLogs): use || instead of ??
iShibi Jun 14, 2021
4c72577
refactor(GuildAuditLogs): use ?? instead of || in more places
iShibi Jun 14, 2021
caadd62
refactor(*): change update to edit for stage instances
iShibi Jun 14, 2021
d539ee7
docs: start comments with uppercase letter
iShibi Jun 14, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docs(StageInstanceManager): document the manager
  • Loading branch information
iShibi committed Jun 13, 2021
commit ad6ee76293897e94edf07bd6290c68df8d6da735
4 changes: 4 additions & 0 deletions src/managers/StageInstanceManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ const { TypeError, Error } = require('../errors');
const StageInstance = require('../structures/StageInstance');
const { PrivacyLevels } = require('../util/Constants');

/**
* Manages API methods for {@link StageInstance} objects and holds their cache.
* @extends {BaseManager}
*/
class StageInstanceManager extends BaseManager {
iShibi marked this conversation as resolved.
Show resolved Hide resolved
constructor(guild, iterable) {
super(guild.client, iterable, StageInstance);
Expand Down