stupid cat
b8034525e3
Add user_guild_settings support ( #1365 )
...
* user guild settings
* Use direct collection
* I'm a goof
* double goof
* Structure properties
* Forgot to register listener
* wrong class names
* No more get in docs
* avoid waterfalls, bot checks
* trycatch
wow i thought i already did this :notlikecat:
* 👀
* Update ClientUser.js
* Update ClientUserGuildSettings.js
* Update UserGuildSettingsUpdate.js
* Update ClientUserChannelOverride.js
* Update ClientUserGuildSettings.js
2017-08-01 04:28:15 +02:00
Pg Biel
eef87e5d97
Reasons ( #1715 )
...
* Add reasons
* How could I forget
* Hopefully fix conflicts
2017-07-27 03:14:04 +02:00
Crawl
4adecf4aef
rewrite ratelimiting and api route builder ( #1667 )
...
* rewrite ratelimiting and api route builder
* more stuff
* let people pass their own handlers
* Update burst.js
* Update RequestHandler.js
* Update burst.js
* Update sequential.js
* Update RequestHandler.js
2017-07-27 03:04:03 +02:00
Crawl
07178a0a2a
Revert "rewrite ratelimiting and api route builder ( #1667 )"
...
This reverts commit a2eeafc75d .
2017-07-26 23:00:46 +02:00
Gus Caplan
a2eeafc75d
rewrite ratelimiting and api route builder ( #1667 )
...
* rewrite ratelimiting and api route builder
* more stuff
* let people pass their own handlers
* Update burst.js
* Update RequestHandler.js
* Update burst.js
* Update sequential.js
* Update RequestHandler.js
2017-07-21 02:32:40 +02:00
SpaceEEC
11556c0b3b
Moved all error strings to src/errors/messages and a few other things ( #1695 )
...
* Added missing error messages
As well as `Guild#setRolePosition` and `Guild#setChannelPosition`'s first arg validation
And fixed a typo in `Guild#setChannelPosition`
`roles` -> `channels`
* Reverted collection and Util constructors
* Removed leftover messages
Should have been in the second commit.
* It's a single invalid permission and removed unused flag error
* Fix INVALID_TOKEN -> TOKEN_INVALID as of #1703
2017-07-21 02:27:19 +02:00
Gus Caplan
7f809395af
add new unique property ( #1659 )
2017-07-05 09:02:40 +01:00
bdistin
d266804953
rest api route fixes ( #1645 )
...
* start of the rest api router fixes.
* fix more missed code
2017-07-02 09:43:10 +01:00
Gus Caplan
5ecd5f7d69
REST API speed improvement ( #1577 )
2017-07-01 10:14:17 +01:00
SpaceEEC
00eebd34cb
Correctly mapping overwrites when creating a channel and renamed all relevant property names as of #1562 ( #1570 )
...
* using correct properties to apply permissionOverwrites
and fixed `GuildChannel#clone`
* also arrays should be mapped and correct properties taking priority
* changed .deny and .allow to .denied and .allowed respectively
* whoops
2017-06-16 12:49:13 +02:00
SpaceEEC
fce15ba33c
Fix for bulkDelete, acknowledge, createInvite and remove some redundant stuff ( #1515 )
2017-05-21 22:04:57 +02:00
Gus Caplan
0baa59b679
Internal API Request Rewrite ( #1490 )
...
* start rewrite
* converted guilds
* more changes
* convert GuildMember
* convert User and remove friend methods which kill people
* convert more stuff
* even more stuff
* make things nicer
* speed and fixes and stuff
* almost finished
* fix
* Update Client.js
* uwu
* Update RESTMethods.js
* message editing
* fix router
* fix issue with references
* message delete reason
* move message sending
* fix dm
* message splitting
* NO MORE REST METHODS
* Update Client.js
* Update WebhookClient.js
* remove all those endpoints from the constants
* Update ClientUser.js
* Update ClientUser.js
* fixes
* Update ClientUser.js
* complaiancy
* all sort of fixes
* merge master (#1 )
* Fix Permissions now that member is deprecated (#1491 )
* removing more deprecation leftovers (#1492 )
* Fix MessageCollectors
* Fix awaitMessages (#1493 )
* Fix MessageCollector#cleanup
* Fix MessageCollector#postCheck
* Add max option back for safety
* Update Invite.js (#1496 )
* guild setPosition missing docs (#1498 )
* missing docs
* update return docs
* indent
* switched .invites for the apirouter and invite.js
* make multiple options an object
* Update ClientUser.js
* fix nicks
* Update WebhookClient.js
2017-05-21 07:04:19 +02:00
SpaceEEC
37a3a6baf9
removing more deprecation leftovers ( #1492 )
2017-05-14 23:44:39 +02:00
Amish Shah
db45d99d0c
More deprecated stuff
2017-05-01 11:28:48 +01:00
Crawl
ac92d2cecc
Improve docs a bit
2017-04-30 04:30:44 +02:00
SpaceEEC
ecb8655dac
Document readonly and private properties ( #1338 )
2017-04-03 20:05:36 +02:00
Gus Caplan
a4e0af2e45
make positions for channels and roles nicer ( #1211 )
...
* make role calculated position nicer
* make channels sortable in a nice way too
* stupid git web rebase editor
* Update Guild.js
* Update Guild.js
* Update Guild.js
* Update Guild.js
* Update RESTMethods.js
2017-04-01 08:28:54 +02:00
bdistin
8729ee6a1d
Fix #1253 : Permission Overwrites Resolution ( #1255 )
...
* Fix #1253
* apparently @ everyone role can be undefined
* Fix oops
* Fixes possible mutiple roles named '@everyone'
* Clean up order/logic
2017-03-15 15:29:34 +01:00
Schuyler Cebulskie
16fe48d405
Overhaul Permissions utilities (EvaluatedPermissions no more)
2017-03-06 02:22:42 -05:00
Schuyler Cebulskie
7473fd513e
Remove InviteOptions typedef, rephrase
2017-03-01 04:48:26 -05:00
SpaceEEC
fc42a46e5b
Invite options ( #1223 )
...
* test
* updated descripton
* Update GuildChannel.js
2017-03-01 04:45:05 -05:00
Amish Shah
26becb570b
Fix #1168 (.hasPermission)
2017-02-04 20:58:39 +00:00
Funnbot
0b5eeb08f3
clone topic in channel.clone() ( #1157 )
...
* Update GuildChannel.js
* Update GuildChannel.js
* Update GuildChannel.js
* Update GuildChannel.js
* Update GuildChannel.js
* Update GuildChannel.js
2017-02-03 21:37:32 -05:00
Gus Caplan
2beb77ab5c
check if a guildchannel is deletable ( #1143 )
...
* Update GuildChannel.js
* eghhh
* Update GuildChannel.js
2017-01-28 10:07:53 +00:00
Gus Caplan
495264761c
Add snowflake utils ( #1064 )
...
* snowflakes
* use proper binary for snowflake example
* fix jsdoc errors
* remove dupe
2017-01-05 15:41:42 +00:00
Alexander
264ee8e7f1
Equals updates ( #987 )
...
* Docs update
Changed the param names and param descriptions to be consistent.
* Added === comparison
Changed Presence.equals and Game.equals to first compare using ===
* Collection.equals fix
Now returns false when collection is undefined, instead of crashing
💯
2016-12-14 17:10:34 -05:00
Alexander
906bb3c5f3
Utilise Collection#equals for structures' equals ( #986 )
...
Utilizing Collection.equals in GuildChannel.equals
Utilizing Collection.equals in GroupDMChannel.equals
2016-12-14 15:35:40 -05:00
Gus Caplan
d766e727a1
add GuildChannel#clone ( #973 )
...
* add GuildChannel#clone
* e
2016-12-11 09:07:52 +00:00
Schuyler Cebulskie
90304aa7d6
Fix loads of JSDoc type issues
2016-11-12 20:52:37 -05:00
Slamakans
5dc30d6812
Nullable permission overwrites ( #869 )
...
Made it possible to pass null to GuildChannel.overwritePermissions's
PermissionOverwriteOptions to blank the permission out.
2016-11-06 10:43:31 +00:00
Programmix
fe3914658a
Grammar cleanup ( #875 )
...
This commit:
* fixes inconsistencies (primarily regarding capitalization)
* fixes non-proper nouns that were improperly capitalized
* fixes reminents from not-so-meticulous copy+paste jobs
2016-11-05 23:57:34 +00:00
Programmix
9a61de1493
Document GuildChannel.edit, add VoiceChannel.setUserLimit, fix typo ( #866 )
2016-11-01 01:42:05 -04:00
Schuyler Cebulskie
73261646fc
Fix ESLint warnings
2016-10-30 17:23:39 -04:00
Amish Shah
d42ac98339
Fix #775 (permission overwrites not taking into account previous values)
2016-10-24 15:47:31 +01:00
Schuyler Cebulskie
62b93659e6
Clean up and simplify some code
2016-10-17 00:02:54 -04:00
Gus Caplan
299484ff68
allow overwritePermissions to take a role id ( #792 )
...
* allow overwritePermissions to take a role id
* Fix typo
2016-10-11 20:29:29 -04:00
Schuyler Cebulskie
b6c26cc2ae
Replace console.log in catches with console.error
2016-09-27 18:50:01 -04:00
Amish Shah
14b8360453
fix doc issue with role
2016-09-24 19:47:50 +01:00
Schuyler Cebulskie
9288cd8563
Replace usages of owner.id with ownerID, and fix GroupDMChannel.equals
2016-09-19 01:43:24 -04:00
Schuyler Cebulskie
47d71d32f3
Make grammer gooder
2016-09-11 01:40:37 -04:00
Schuyler Cebulskie
0833500d60
Made most object typedefs specify their properties
2016-09-11 01:21:49 -04:00
Schuyler Cebulskie
a5dfa08777
Revert "Hopefully fix type showing in GuildChannel docs"
...
This reverts commit 5563af0da5 .
2016-09-08 19:56:21 -04:00
Schuyler Cebulskie
5563af0da5
Hopefully fix type showing in GuildChannel docs
2016-09-08 19:54:55 -04:00
Schuyler Cebulskie
978cf9d87f
Fix permission overwrites for @everyone
2016-09-07 23:42:14 -04:00
Schuyler Cebulskie
818649b94f
Organise structure methods
2016-09-07 02:07:39 -04:00
Schuyler Cebulskie
b7f582b7f0
Clean up a bunch of stuff
...
- Channel typing data is now a Map
- Client properties on structures are now non-enumerable and
non-configurable
2016-09-07 00:24:45 -04:00
Schuyler Cebulskie
752e12116e
Move topic to TextChannel ( Fixes #642 )
2016-09-06 18:05:14 -04:00
Schuyler Cebulskie
910f47240d
Move and document GuildChannel.guild ( #613 )
2016-09-06 16:45:09 -04:00
Schuyler Cebulskie
0b908f5bce
Cleanup Part 2: Electric Boogaloo (Reloaded) ( #594 )
...
* Cleanup Part 2: Electric Boogaloo (Reloaded)
* Moar cleanup
* Tweak NOT_A_PERMISSION error
2016-09-04 10:08:09 +01:00
Amish Shah
5a9c42061f
Fix permissionsFor
2016-09-03 23:46:39 +01:00