iBisho
b347e9ec26
refactor(MessageEmbed): simplify initialization of files property ( #3814 )
2020-02-22 22:36:29 +01:00
Sugden
161f90761a
feat(PartialGroupDMChannel): to support Invite#channel for group dms ( #3786 )
...
* add PartialGroupDMChannel class
* fix lint
* add new errors
* add new class to Channel.create
* fix lint
* update typings accordingly
* better implement errors
* remove unnecessary functions
* oops
* lint
* lint
* lint
* more lint
* more lint
* jsdoc typo
* suggested changes
* i did not forget the typings
2020-02-22 13:25:27 +01:00
Sugden
bea6da621d
feat(Guild): add rulesChannel and publicUpdatesChannel ( #3810 )
...
* add rulesChannel* & publicUpdatesChannel*
* update typings
2020-02-22 13:04:41 +01:00
Vlad Frangu
46ee06b424
feat(Message): add support for flag editing / embed suppression ( #3674 )
2020-02-16 19:36:10 +01:00
Ryan Munro
a36f3869b3
fix(Message): handle undefined/null content in cleanContent getter ( #3778 )
...
* Handle undefined/null content in Message#cleanContent
* Typings
* Update typings/index.d.ts
Co-Authored-By: SpaceEEC <spaceeec@yahoo.com >
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
2020-02-12 23:07:34 +01:00
Sugden
878cc050d4
fix(Guild): use snake case when editing system_channel_flags ( #3781 )
2020-02-12 22:47:24 +01:00
Sugden
562b5bfca7
refactor(VoiceChannel): use Permissions.FLAGS in speakable ( #3780 )
2020-02-12 22:42:43 +01:00
Sugden
d43692b0f2
docs(Guild): channels is a manager of channels ( #3779 )
2020-02-12 22:29:16 +01:00
Ryan Munro
592021df92
feat(Message): throw a TypeError if delete is passed a non-object ( #3772 )
2020-02-12 22:25:14 +01:00
Sugden
324d9e0a3a
fix(TextChannel): remove old nsfw regex check ( #3775 )
2020-02-12 18:24:35 +01:00
BorgerKing
bbdbc4cfa7
feat: remove datastores and implement Managers ( #3696 )
...
* Initial commit: add 5 initial managers
- Base manager
- GuildChannelManager
- MessageManager
- PresenceManager
- Reaction Manager
- Added LimitedCollection
* Add GuildEmojiManager, various fixes
* Modify some managers and add guildmembermanager
* Initial integration
* Delete old stores
* Integration part two, removed LRUCollection
- Most of the integration has been finished
- TODO typings
- Removed LRUCollection, needless sweeping
* Typings + stuff i somehow missed in ChannelManager
* LimitedCollection typings/ final changes
* Various jsdoc and syntactical fixes, Removed Util.mixin()
* tslint fix
* Grammatical and logical changes
* Delete temporary file placed by mistake
* Grammatical changes
* Add missing type
* Update jsdoc examples
* fix: ChannelManager#remove should call cache#delete not cache#remove
* fix recursive require
* Fix missed cache in util
* fix: more missed cache
* Remove accidental _fetchMany change from #3645
* fix: use .cache.delete() over .remove()
* fix: missing cache in ReactionCollector
* fix: missed cache in client
* fix: members is a collection not a manager
Co-Authored-By: Sugden <28943913+NotSugden@users.noreply.github.com >
* fix: various docs and cache fixes
* fix: missed cache
* fix: missing _roles
* Final testing and debugging
* LimitedCollection: return the Collection instead of undefined on .set
* Add cache to BaseManager in typings
* Commit fixes i forgot to stage yesterday
* Update invite events
* Account for new commit
* fix: MessageReactionRemoveAll should call .cache.clear()
* fix: add .cache at various places, correct return type
* docs: remove mentions of 'store'
* Add extra documented properties to typings
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
2020-02-11 20:21:07 +01:00
Souji
3f039016af
fix(GuildMember): manageable - let owner override ( #3765 )
...
* if the bot is owner of the guild the target is managebale
* even though both roles are on the same position
2020-02-07 18:27:05 +01:00
Jyguy
8e9e93da1d
docs(Guild): fetchBan returns a promise ( #3752 )
2020-01-29 18:54:10 +01:00
BorgerKing
030d263a9e
feat(MessageReaction): add remove method and Client#messageReactionRemoveEmoji ( #3723 )
...
* Add support for MessageReaction#remove and MESSAGE_REACTION_REMOVE_EMOJI
* Remove reaction from cache
Co-Authored-By: matthewfripp <50251454+matthewfripp@users.noreply.github.com >
* fix: message may be partial
* Clarify what the event entails
* Document client in MessageReaction
Co-Authored-By: SpaceEEC <spaceeec@yahoo.com >
* await the REST call
* Add MessageReaction#remove to typings
Co-authored-by: matthewfripp <50251454+matthewfripp@users.noreply.github.com >
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
2020-01-25 20:00:53 +01:00
Ryan Munro
d8b4725caa
fix(TextChannel#bulkDelete): use GenericAction#getMessage to handle return value correctly ( #3664 )
...
* Corrected the handling of the action
* Apply same fix to handling of single message in bulkDelete
* Revert to using await
2020-01-25 15:27:39 +01:00
Sugden
3ea9ac57dd
fix(ClientUser): verified and enabled properties resetting ( #3733 )
...
* fix(ClientUser) verified and enabled properties resetting
* set this.mfaEnabled to null if it is undefined
* add missing curly brackets
* fix typo
2020-01-25 15:08:25 +01:00
Gryffon Bellish
b81f771007
cleanup: fix deepscan issues ( #3740 )
...
* fix: don't double check if shards are auto.
* fix: remove useless roles array.
* fix: remove useless undefined checks.
* fix: remove useless `this` binding
* Apply suggestions from code review
Co-Authored-By: Sugden <28943913+NotSugden@users.noreply.github.com >
* Fix: Space's suggestion
* Fix: time is always truthy
* Check if it's an invalid date.
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com >
2020-01-24 16:58:23 +01:00
Sugden
c779fe3670
feat(Guild): add fetchBan method ( #3726 )
...
* Add error for not resolving ID to fetch ban
* Add Guild#fetchBan
* add missing !
* typings
* lint fixes
* add jsdoc description
2020-01-24 15:29:53 +01:00
SpaceEEC
6302afb84b
docs(MessageMentions): channels are actually in order ( #3705 )
...
* docs(MessageMentions): channels are actually in order
* docs(MessageMentions): readd info about order for channels
* docs(MessageMentions): reword info to account for rtl locales
2020-01-19 13:06:21 +01:00
SpaceEEC
f501d06c0d
fix(Presence): account for multiple activities everywhere ( #3703 )
...
* fix(Presence): account for multiple activities everywhere
* refactor(Presence): make initialization of 'activities' more readable
2020-01-19 13:05:45 +01:00
BorgerKing
cbb8db3058
feat(Collectors): make collectors auto-stop when relevant structures are deleted ( #3632 )
...
* Collectors: make Collectors automatically stop when Channel, Guild, or Message are deleted.
* fix potential error with DM collectors
* Message collectors dont have a `this.message` you dummy
* Fix(various): nitpicks, documentation, typings, and stray error
* Pleasing mr tslint
* fix: typings
* Grammatical fixes
Co-Authored-By: SpaceEEC <spaceeec@yahoo.com >
* Fixing the linting after space's suggestions
* docs(ReactionCollector): remove whitespace
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
2020-01-19 11:24:55 +01:00
Gryffon Bellish
69c79a4136
typings/docs(GuildEmoji): id isn't nullable ( #3694 )
...
* Fix: GuildEmoji#id isn't nullable
* Move ID to be alphabetical
* Add JSDoc to say it's not nullable
* fix linting
2020-01-17 20:11:14 +01:00
Souji
7f99be739a
docs(MessageMentions): add sort order notice ( #3693 )
...
* mention order returned from API
* not left to right in text
2020-01-14 11:28:19 +01:00
SpaceEEC
ee0b7c155a
feat(Presence): add support for multiple activities ( #3661 )
...
* feat(Presence): add support for multiple activites
* typings(Presence): fix spelling of 'activities'
Co-Authored-By: Amish Shah <amishshah.2k@gmail.com >
Co-authored-by: Amish Shah <amishshah.2k@gmail.com >
2020-01-13 20:28:29 +00:00
Tenpi
8014ddcd1c
feat: dynamic property for ImageURLOptions ( #3530 )
...
* Added dynamic property to ImageURLOptions
* fixes
* order
* typings fix
* made dynamic false by default
* add curly spaces
2020-01-13 14:32:29 +00:00
Souji
59205a2152
fix: provide count on bulk deletion ( #3682 )
...
* GuildAuditLogsEntry should provide count as extra in case of MESSAGE_BULK_DELETE
* inner class: GuildAuditLogsEntry in GuildAuditLogs.js
2020-01-13 14:02:31 +00:00
izexi
6af0da1043
feat(Partials): add DMChannel/MessageReaction#fetch() and PartialTypes.REACTION ( #3474 )
...
* add DMChannel#fetch() & Action#getChannel({recipients})
* ref for MessageReaction partial
* typings
* add PartialTypes.REACTION
* accommodate for fully removed reactions
* fix incorrect wording and typo
* typings: MessageReaction#count is nullable
* typings: mark MessageReaction#partial as readonly
Co-Authored-By: Vlad Frangu <kingdgrizzle@gmail.com >
* fix(User): fetch dm channel if cached one is partial
* docs: add missing comma
Co-Authored-By: Antonio Román <kyradiscord@gmail.com >
* fix: accomodate for new reactions
* fix: updating existing/new count on _patch
* docs: typo
* for consistency
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com >
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
Co-authored-by: Antonio Román <kyradiscord@gmail.com >
2020-01-05 16:45:49 +01:00
tipakA
bf31b28ad9
feat(RichPresenceAssets): add Twitch preview link for largeImageURL ( #3655 )
2020-01-05 00:50:38 +01:00
SpaceEEC
97eac663b3
feat(MessageMentions): cache mentioned members ( #3601 )
2019-12-27 19:28:04 +01:00
SpaceEEC
e660ea90cc
fix(Webhook): edit channel when editing avatar ( #3588 )
2019-12-27 19:27:48 +01:00
SpaceEEC
ea76a56639
feat(Webhook): add type property and created* getters ( #3585 )
...
* feat(Webhook): add created* getters
* feat(Webhook): add type property
* typings(WebhookFields): use primitive string for url getter
Co-Authored-By: Gryffon Bellish <owenbellish@gmail.com >
* fix(Webhook): token can be null
Co-authored-by: Gryffon Bellish <owenbellish@gmail.com >
2019-12-27 19:27:34 +01:00
ottomated
f578cce9ac
feat(Guild): add systemChannelFlags ( #3559 )
...
* Add systemChannelFlags bitfield to Guild
* Implement @vladfrangu's suggestions
* fix: apply suggestions, reverse order of flags, reword docs
* docs: add SystemCHannelFlagsResolvable typedef
Co-authored-by: SpaceEEC <spaceeec@yahoo.com >
2019-12-21 21:27:14 +01:00
Sugden
99e8d3c540
cleanup: remove acknowledge method from TextChannel & DMChannel ( #3635 )
...
* Update TextChannel.js
* remove acknowledge method
2019-12-21 20:32:24 +01:00
izexi
43782839ec
feat: add new MessageFlags.FLAGS & User#system ( #3603 )
...
* feat: add new FLAGS
* feat: add system property
* typings: add User#system & new MessageFlagsStrings
2019-12-15 20:23:06 +01:00
Carter
330d5db586
feat(Webhook): addition of Webhook#avatarURL function ( #3625 )
...
* feat: addition of Webhook#avatarURL
* typings: added Webhook#avatarURL
* fix: trailing space
* docs: fixed jsdoc function description
* fix: typo
2019-12-15 20:20:15 +01:00
Jeroen Claassens
2ca74d6b63
feat(Activity): support for CUSTOM_STATUS activity type ( #3353 )
...
* feat: support for custom status in activity
* nit(typings): order properties
2019-12-05 13:13:42 +01:00
Gryffon Bellish
d39f17925d
fix(Invite): fix valueOf returning undefined ( #3582 )
...
* Update Invite.js
* Fix typings
* Fix ESLint errors
2019-11-19 21:54:35 +01:00
Carter
1bcc0c2e1d
feat(GuildAuditLogs): add new event types ( #3584 )
...
* adds more audit-log entries
this adds additional audit-log types from https://discordapp/discord-api-docs/pull/1191
* typings for new audit-log entries
* typings for new audit-log entries
* fix action numbers
2019-11-19 21:51:26 +01:00
matthewfripp
38d370fb18
feat(MessageAttachment): add spoiler property ( #3561 )
...
* feat(MessageAttachment): add spoiler property
* typings
* Implement suggestions
* Make readonly
Co-Authored-By: Antonio Román <kyradiscord@gmail.com >
2019-11-04 14:44:36 +01:00
Jiralite
cc466fa4b9
docs: NewsChannel and StoreChannel ( #3557 )
...
* Added news & store
* Update GuildChannel.js
* Added in News and Store
2019-11-04 11:35:14 +01:00
SpaceEEC
2e20e8092b
fix(*Collector): account for a max listener count of 0 ( #3504 )
2019-11-04 11:25:43 +01:00
rei2hu
9e0705cbc3
fix(Message): check for edited_timestamp in data when patching message ( #3535 )
...
* check for data.edited_timestamp
* actually i should do it like this for consistency
* indentation
2019-10-18 11:55:35 +02:00
izexi
a8f06f251f
feat(VoiceState): add VoiceState#streaming ( #3521 )
...
* feat: add VoiceState#streaming
* typings: add VoiceState#streaming
2019-10-04 16:44:35 +02:00
Vlad Frangu
a4f06bdffd
src: support new message fields ( #3388 )
...
* src: Update channel pattern
* src: Remove useless non-capture group
* src: it's as though we're starting fresh
* src: Bring this up to date for reals now
* src: typings and a bug fix
* src: Add crossposted channels to message mentions
* src: Requested changes and add typings
* src: Move Object.keys outside loop
* typings: Fix enum being exported when it shouldn't
* src: Consistency with roles and users
* docs: Correct docstring for MessageFlags#flags
* docs: Correct docstring for MessageMentions#crosspostedChannels
* docs: Suggestions
Co-authored-by: SpaceEEC
* src: Reset flags to 0 if no flags are received on MESSAGE_UPDATE
2019-10-01 11:01:55 +02:00
Vlad Frangu
ea8b4e7355
docs/typings: Rename LURKABLE to PUBLIC and update GuildFeatures type ( #3484 )
...
* docs: Rename LURKABLE to PUBLIC
* typings: Update GuildFeatures type
2019-09-25 23:28:12 +02:00
Gryffon Bellish
d280d1b03f
style: change let to const in MessageMentions ( #3483 )
2019-09-24 17:36:19 +02:00
Crawl
321beb73bd
revert: "feat(Partials): add DMChannel/MessageReaction#fetch()… ( #3468 )
...
This reverts commit b0047c424b .
2019-09-10 19:49:56 +02:00
izexi
b0047c424b
feat(Partials): add DMChannel/MessageReaction#fetch() and Parti… ( #3261 )
...
* add DMChannel#fetch() & Action#getChannel({recipients})
* ref for MessageReaction partial
* typings
* add PartialTypes.REACTION
* accommodate for fully removed reactions
* fix incorrect wording and typo
* typings: MessageReaction#count is nullable
* typings: mark MessageReaction#partial as readonly
Co-Authored-By: Vlad Frangu <kingdgrizzle@gmail.com >
* fix(User): fetch dm channel if cached one is partial
* docs: add missing comma
Co-Authored-By: Antonio Román <kyradiscord@gmail.com >
2019-09-10 16:09:06 +02:00
Carter
6f83e71555
feat: Guild#partnered ( #3444 )
...
* feat: Guild#partnered
* typings: added Guild#features
* fix: removed trailing space
* typings: made Guild#partnered readonly
2019-09-10 15:47:13 +02:00
SpaceEEC
8e0f525d91
fix(Role): throw TypeError in comparePositionTo ( #3466 )
2019-09-10 15:44:49 +02:00