Schuyler Cebulskie
bbc9df0b0d
Improve cleanContent code
2016-09-08 22:05:30 -04:00
Kelvin Wu
9888cef486
Add content parameter to sendFile() ( #664 )
...
* Add content arg to sendFile(). Closes #658 .
* Shorten this a bit.
2016-09-08 21:55:18 -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
LewisHogan
9bef99c75c
Added cleanContent getter ( #644 )
...
* Added cleanContent getter which replaces mentions with the equivalent
text.
(Majority of code implemented by Gus).
* Fixed bug where invalid mentions would cause crash
* Fixed not cleaning @everyone and @here
* Fixed only detecting first @here or @everyone, resolved to test software (and learn regular expressions) in the future
2016-09-08 16:38:17 -04:00
Schuyler Cebulskie
57acd4f41a
Add GuildMember.permissions/hasPermission
2016-09-08 02:29:51 -04:00
Schuyler Cebulskie
978cf9d87f
Fix permission overwrites for @everyone
2016-09-07 23:42:14 -04:00
Schuyler Cebulskie
465ff074e1
Prevent Guild.fetchMember from messing with fetchMembers
2016-09-07 23:12:36 -04:00
Kelvin Wu
9bdf670a14
Add Guild.defaultChannel. ( #646 )
...
* Add Guild.defaultChannel. Closes #643 .
* Change defaultChannel to a getter.
2016-09-07 15:58:18 -04:00
Schuyler Cebulskie
818649b94f
Organise structure methods
2016-09-07 02:07:39 -04:00
Schuyler Cebulskie
73cb34ed37
Move _typing to text-based channels
2016-09-07 01:34:46 -04:00
Schuyler Cebulskie
f185d892c7
Fix two more lines to use new typing map
...
And a tiny text fix
2016-09-07 00:58:19 -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
c7b4cf3d3f
Add Guild.fetchMember
2016-09-06 20:36:58 -04:00
Kelvin Wu
f3286402fb
Make Message.edit() accept arrays. ( #630 )
...
* Make Message.edit() accept arrays. Update corresponding parameters in docs (#624 ).
* Tweak parameter types in docs.
* Update docs.
2016-09-06 20:32:24 -04:00
Programmix
17bee8084e
Add Message.edits ( #636 )
...
* Add Message.edits
* Make travis happy
* Change @type for consistency
2016-09-06 19:20:35 -04:00
Schuyler Cebulskie
752e12116e
Move topic to TextChannel ( Fixes #642 )
2016-09-06 18:05:14 -04:00
Schuyler Cebulskie
9d694d2b67
Add ability to ban non-members from guilds ( #638 )
2016-09-06 16:55:42 -04:00
Schuyler Cebulskie
e1bda864f7
Add createRole with data ( #637 )
2016-09-06 16:54:06 -04:00
Schuyler Cebulskie
7fea0a3937
Rename createdAt -> creationDate ( #628 )
...
* Rename createdAt -> creationDate
Also make it return a Date like it says, and small cleanup
* Build docs
2016-09-06 16:52:10 -04:00
Schuyler Cebulskie
910f47240d
Move and document GuildChannel.guild ( #613 )
2016-09-06 16:45:09 -04:00
HyperCoder
943767dc83
Add <User/Guild/Role/Channel>.createdAt ( #620 )
...
* Add Role.createdAt
* Add Channel.createdAt
* Add Guild.createdAt
* Add User.createdAt
* Change createdAt to Unix Timestamp
* Add createdAt to Emojis
* Change createdAt to Unix Timestamp
2016-09-05 15:59:27 +01:00
Snazzah
bd113eef06
MessageEmbedAuthor ( #619 )
2016-09-05 07:22:51 +01:00
Schuyler Cebulskie
dc7b07022c
Add GuildMember.addRole/addRoles ( #615 )
...
* Add GuildMember.addRole/addRoles
* Add GuildMember.removeRole/removeRoles
2016-09-05 07:18:51 +01:00
Hackzzila
3b7d5e869b
Added disable_everyone ( #603 )
...
* Added disable_everyone
* Fixed docs
2016-09-04 19:03:59 +01:00
Manuel Kraus
48e7fad1c9
Expose TextBasedChannel#fetchMessage() ( #602 )
2016-09-04 18:46:29 +01:00
Amish Shah
bcab8805af
Add client.emojis and fix eslint
2016-09-04 17:54:31 +01:00
Amish Shah
db9d5b8110
Make setStatus take a streaming URL param
2016-09-04 17:48:02 +01:00
Amish Shah
bf3c283998
Add Message.isMentioned
2016-09-04 17:21:50 +01:00
Amish Shah
9f0db9d0d8
join arrays with new lines when sending as messages
2016-09-04 17:16:01 +01:00
Amish Shah
89145b121d
add info to Guild
2016-09-04 12:15:39 +01: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
Amish Shah
16fbbde35c
Make syncGuilds off limits to bot accounts
2016-09-03 23:25:26 +01:00
Amish Shah
fced6983d9
GuildMember.roles is now a collection instead of an array
2016-09-03 22:56:33 +01:00
Amish Shah
7ff2568cfc
Fix collectors and make guild sync add previously unknown members
2016-09-03 21:21:15 +01:00
Schuyler Cebulskie
68acf37fd4
Add stricter/better ESLint config ( #589 )
...
* Add stricter/better ESLint config
* Remove more unnecessary @returns
2016-09-03 20:45:23 +01:00
Amish Shah
a172fffd76
Actually add GUILD_SYNC
2016-09-03 17:59:16 +01:00
Amish Shah
513fdabd19
Add GUILD_SYNC support (user accounts are fixed now)
2016-09-03 17:58:59 +01:00
Schuyler Cebulskie
d97ce2e181
Remove all string object references ( #586 )
2016-09-03 16:58:28 +01:00
Schuyler Cebulskie
27652b94af
Make JSDocs follow general conventions ( #582 )
...
* Make JSDocs follow usual conventions
* Fix StringResolvable name
* Make function lowercase
2016-09-03 09:57:25 +01:00
Amish Shah
ae17a89191
Reduce memory usage by dynamically creating Dates
2016-09-02 13:18:27 +01:00
Schuyler Cebulskie
b8a5669fda
Overhaul channel typing system ( #576 )
...
* Overhaul channel typing system
* Fix ESLint error
* Add channel.isTyping()
* Add count argument to startTyping
* Add range checking to startTyping count
* Better range checking for count
* Add channel.getTypingCount()
* Change getTypingCount() to typingCount getter
* Switch isTyping() to typing getter
* Fix new methods and switch to Map
* Fix applyProp so getters/setters will work
* Add default value to force
2016-09-02 13:00:33 +01:00
Amish Shah
43f1c952c3
do more docs
2016-09-01 17:18:05 +01:00
Amish Shah
df9cab3864
whoops fix docs
2016-09-01 15:55:14 +01:00
Amish Shah
8d9a778320
fix guild owner
2016-09-01 15:54:58 +01:00
Amish Shah
552d603782
Try and fix author bug?
2016-09-01 14:50:45 +01:00
Amish Shah
aee547d28e
fix docs
2016-09-01 13:10:51 +01:00
Amish Shah
a725147f17
Document EvaluatedPermissions
2016-09-01 13:08:55 +01:00
Amish Shah
1298fefa2f
Fix message docs
2016-09-01 10:08:46 +01:00