BannerBomb
b662678f21
feat/fix(Util): fix animated part of parseEmoji regex and make id optional ( #3407 )
...
* Small changes to parseEmoji regex
I just made a small change to the parseEmoji regex, this change will make an invalid emoji, like `<aname:id>` return as null, before this change it would return as an animated emoji because the name started with an `a` which would result in false positives, then the `?` I added to the end of `(\d{17,19})?` is used if someone provided an emoji as `:name:` or `a:name:` it will return the correct values but have an invalid id.
* Update Util.js
2nd Update: I changed the regex to output the results if you provide `<aemoji:123456789012345678>` and <:aemoji:123456789012345678>` which will output `{ animated: false, name: "aemoji", id: "123456789012345678" }` or `<:emojiname:>` which outputs `{ animated: false, name: "emojiname", id: null }` or `<a:emoji:>` which would output `{ animated: true, name: "emoji", id: null }`. Before this PR the method would return that the emoji was animated if you provided something like `<anemojiname:emoji_id>` because the name started with an `a`.
2019-08-17 18:07:58 +02:00
didinele
2df4f227a4
refactor: move Guild#defaultRole to RoleStore#everyone ( #3347 )
...
* remove guild#defaultRole
* add RoleStore#defaultRole
* typings
* fix trailing space
* another one
* Rename it to everyone
2019-08-17 18:02:17 +02:00
bdistin
6d3c55b68c
feat(Collector): allow collectors to be consumed by for-await-of loops ( #3269 )
2019-08-17 17:57:45 +02:00
Carter
7fae6e5bca
typings: switch overloads of RoleStore#fetch ( #3397 )
...
because compu told me to
2019-08-17 17:51:52 +02:00
Robin Millette
f55e4302c9
github: fix duplicate key in FUNDING.yml ( #3380 )
...
Comment out (keep for reference) unused platforms. Also fixes a duplicate `github` key.
2019-08-17 17:50:49 +02:00
Amish Shah
c6e8fccbf0
voice: fix #3418
...
(kicking bot from voice channel doesn't allow it to rejoin)
2019-08-17 13:42:22 +01:00
Amish Shah
2c4d14a71b
voice: remove redundant debug info
2019-08-14 19:22:41 +01:00
Amish Shah
f79f024343
fix: bots being unable to connect
2019-08-12 21:40:26 +01:00
Vlad Frangu
9e76f23314
fix(GuildMemberStore): reject BAN_RESOLVE_ID error instead of throwing it ( #3425 )
2019-08-10 12:22:11 +02:00
iCrawl
d14db52158
fix(typings): send overloads
2019-08-04 15:57:39 +02:00
Crawl
5af8cb8e6e
feat: overload for split always returning an array ( #3411 )
...
* feat: overload for split always returning an array
* feat: update Util.splitMessage
2019-07-30 00:25:45 +02:00
TNThacker2015
e645dd6358
feat: Util.splitMessage always return an array ( #3035 )
...
* Making Util.splitMessage always return an array
Util.splitMessage sometimes returns an array, but other times it returns a string. This should make it so that it always returns an array.
* jsdoc
Co-Authored-By: TNThacker2015 <37024464+TNThacker2015@users.noreply.github.com >
* docs(Util): remove superfluous space in docstring
2019-07-30 00:25:35 +02:00
Lewis
53722b47c1
chore(license): update copyright notice ( #3408 )
2019-07-30 00:00:56 +02:00
Alex
e562564123
docs(Guild): add missing features ( #3406 )
...
* Update Guild.js
* Update Guild.js
* style(Guild): remove trailing space
* typings(Guild): add new features
2019-07-28 15:24:27 +02:00
Kitten King
d8516efa36
docs: fix typos ( #3404 )
2019-07-25 17:18:23 +02:00
Crawl
651ff81bd5
fix: update issue templates
2019-07-13 18:02:07 +02:00
MoreThanTom
547bf83100
feat(typings): constants export ( #2915 )
...
* Added typings for Constants export
* Full typing of list Constants
* Fix mistake in Package typing
* Cleanup for requested changes
moved fs import to import cluster
WSEvents using WSEventType to build type
* Satisfy tslint rules
* Update Constants.js
* Update index.d.ts
* Update index.d.ts
* Update index.d.ts
* Update index.d.ts
* Update index.d.ts
* Update index.d.ts
* Update index.d.ts
* Update index.d.ts
2019-07-12 17:02:45 +02:00
bdistin
00c4098bb3
refactor(Util.escapeMarkdown): allow separate escaping and add tests ( #3241 )
...
* wip refactor
* add escapeMarkdown tests
* italics can be done with a single underscore too
* more refined
* fix test name
* unnecessary eslint ignores
* use jest
* make eslint less annoying in this test file
* more testing
* fix lib usage
* more tests and a small fix
2019-07-11 22:08:40 +02:00
Eduardo Londero
f1433a2d97
feat(Collector): add idle time for a Collector to stop itself ( #2942 )
...
* Implement idle feature
* Add typings
* Minimal fixes
* Make everything in Collector and not attached to ReactionCollector
* set this._idletimeout to null when collector ends
* also set this._timeout to null when collector ends
2019-07-11 21:40:12 +02:00
Jisagi
adb082305d
feat(Guild): add banner to edit method and add setBanner method ( #3364 )
...
* add setBanner method to Guild
* typos fixed & typings added
* more typings
* docs(Guild): add banner to GuildEditData
2019-07-11 13:09:43 +02:00
Vlad Frangu
4069d009d1
misc: automatically add labels to issues that use a template ( #3367 )
...
* misc: Automatically add labels to issues that use the template
* misc: Ditto
* misc: DITTO
2019-07-11 12:59:19 +02:00
Skillz4Killz
20d7b3de59
docs/typings(VoiceStateStore): document and type the class ( #3294 )
...
* Update index.d.ts
* Update Guild.js
* Update Guild.js
* docs/typings(VoiceStateStore): document and add typings
2019-07-04 16:20:28 +02:00
SpaceEEC
b65a4f05da
fix(ClientApplication): fix ternaries
2019-06-26 20:19:05 +02:00
SpaceEEC
1dd4c041e0
fix(ClientApplication): owner is still nullable
...
Fixes #3358
2019-06-26 20:12:05 +02:00
SpaceEEC
4c11347511
docs(Team*): fix appliction -> team, tag -> mention
2019-06-26 11:42:03 +02:00
Vlad Frangu
61e2e3e1ad
docs: add zucc to docsite welcome page ( #3355 )
2019-06-26 11:36:11 +02:00
SpaceEEC
d7b2146c81
refactor(TeamMember): make id a getter
2019-06-25 20:40:15 +02:00
bdistin
a22aabf6a8
feature: teams support ( #3350 )
...
* basic teams support
* export Team & TeamMember
* use typedef
* typings and some fixes
* Update src/structures/TeamMember.js
Co-Authored-By: Vlad Frangu <kingdgrizzle@gmail.com >
* fix Team#iconURL()
* fix typings and a bug
* fix states start at 1
* team icon hash can be null
* fix owner typings
2019-06-25 20:31:48 +02:00
anandre
6100aceef2
docs(RoleStore): update -> create in create method ( #3349 )
...
Under `create`, change `update` -> `create` in the description
2019-06-19 18:49:33 +02:00
SpaceEEC
1bec28bd81
feat(Guild): default iconURL to gif if animated ( #3338 )
...
* feat(Guild): default iconURL to gif if animated
* Icon, not Banner
* fix url
2019-06-13 14:14:47 +02:00
Ryan Munro
f82f0af928
docs(Presence): document client property ( #3342 )
2019-06-12 21:54:12 +02:00
SpaceEEC
6cd4c27fae
docs(Client): fetchVoiceRegions returns a promise
2019-06-08 16:18:50 +02:00
Alex
19ef45130b
docs(Guild): add missing features ( #3336 )
...
The addition of missing guild features that were added in the Nitro boost update, such as ANIMATED_ICON
2019-06-08 10:38:45 +02:00
SpaceEEC
4a2335c69c
docs(*Resolvable): make them appear on the docs
...
I don't know what part of the docgen is not working properly, but this seems to fix those typedef
to not appear on the documentation
2019-06-05 22:18:06 +02:00
SpaceEEC
8e1857286d
typings(Guild): add typings for setRolePositions
...
See:
PR: #3317
Commit: 8bc8ffe168
2019-06-05 22:18:01 +02:00
brian
8bc8ffe168
feat(Guild): add setRolePositions method( #3317 )
...
Allows for role positions to be batch-updated similar to how channel
positions are. It uses the Discord API endpoint PATCH /guild/:id/roles
2019-06-05 21:57:31 +02:00
Skillz4Killz
e87e4a6f0e
typings(GuildChannelStore): add CategoryChannel as possible return value ( #3326 )
2019-06-05 21:46:11 +02:00
Saya
ddcc6cfec9
docs(Constants): add missing GUILD_EMOJIS_UPDATE to WSEvents ( #3325 )
2019-06-05 21:37:10 +02:00
izexi
c87758086b
feat: add support for premium guilds ( #3316 )
...
* add premiumTier and premiumSubscriptionCount
* add premiumSinceTimestamp and premiumSince
* add premium message types
* typings
* add GuildEmoji#available
* fix doc description
2019-06-05 21:34:33 +02:00
Deivu (Saya)
405bdb5b55
cleanup(Constants): remove duplicate VOICE_STATE_UPDATE ( #3313 )
2019-05-31 09:06:28 +02:00
DeJay
5aa9425040
Removes the trace packet ( #3312 )
...
* Removes the trace packet
* Update src/client/websocket/WebSocketShard.js
Co-Authored-By: Amish Shah <amishshah.2k@gmail.com >
* Update src/client/websocket/WebSocketShard.js
Co-Authored-By: Amish Shah <amishshah.2k@gmail.com >
2019-05-30 19:57:34 +01:00
bdistin
5154850a54
Add Stream permission ( #3309 )
...
* Add Stream permission
* update docs, and DEFAULT
Created a new guild to test DEFAULT
* update typings
2019-05-30 08:26:49 +01:00
Amish Shah
8652e47c14
fix: decode voice ws data as json
2019-05-28 14:51:41 +01:00
Amish Shah
b5aff6d120
remove member voice state after emitting leave event
2019-05-28 10:00:57 +01:00
Will Nelson
d34b62414b
fix: StreamOptions#volume typings ( #3303 )
2019-05-27 20:56:40 +01:00
Gus Caplan
065908956b
fix websocket unpacking ( #3301 )
2019-05-27 18:13:25 +01:00
Amish Shah
db56e0cbae
fix: delete VoiceStates even for uncached members
2019-05-27 18:09:54 +01:00
Amish Shah
949488bbbd
Fix #3218
2019-05-27 14:04:13 +01:00
Amish Shah
1ce670daa9
Create FUNDING.yml
...
Just trialling it out
2019-05-26 10:33:58 +01:00
Will Nelson
9ca36b8eea
typings(VoiceState): add connection getter ( #3292 )
...
* fix: add connection to voice state typings
* Update typings/index.d.ts
Co-Authored-By: SpaceEEC <spaceeec@yahoo.com >
2019-05-25 16:18:44 +02:00