Mateusz Brawański
b4bf046ad4
Implemented emoji endpoints ( #835 )
...
* Implemented emoji endpoints.
* Fixed: now using API entities for REST client.
* Removed emoji listing endpoint, as per @foxbot's request.
2017-11-20 15:02:42 -05:00
Chris Johnston
cf8de42b62
Add GuildPermissions and ChannelPermissions Unit Tests ( #873 )
...
* initial commit
* Add GuildPermission tests for constructor and modify parameters
* Fixed GuildPermission All value. Previous value had an additional digit that would still resolve to correct permission flags, but raw value would be incorrect. This matches the result of the sum of all GuildPermission flags
* Added raw value check to guild permission modify tests
* Add ChannelPermissions tests
2017-11-20 14:54:10 -05:00
Christopher F
9979a027d5
Change default InviteAge to 24 hours
...
Resolves #859
2017-11-10 15:39:33 -05:00
Christopher F
623d60fe51
Merge remote-tracking branch 'origin/dev' into dev
2017-11-06 20:41:08 -05:00
Christopher F
676be4081b
Ignore messages with an ID of 0 when calculating age
2017-11-06 20:40:59 -05:00
Chris Johnston
dec7cb2b5b
Fix GuildPermission Modify, Add Missing Permission to AllowAll ( #866 )
...
* Use named parameters in GuildPermission constructor, fix ordering of parmeters in Modify constructor call
* fix missing constructor parameter
* Added missing Webhook permission for the all text permissions value
* Resolves #869 Add UseExternalEmojis permission to GuildPermissions.All
2017-11-05 22:06:41 -05:00
enzosk8
da335b95c4
Fix general typos ( #852 )
2017-11-05 22:05:19 -05:00
Chris Johnston
f9963380a7
Proposed Solution for #674 Permissions Changes ( #743 )
...
* Initial commit of changes. Changed permissions from bitwise index to use bitwise flags instead. Modified relevant methods involved
* Revised enum value naming
* Added FlagsAttribute to ChannelPermission, GuildPermission
* Added comments per Joe4evr suggestion
* Added underlines to hex value digits for readability per Joe4evr suggestion
* updated names to better reflect actual permission names as per SubZero0 suggestion
* fix for 236775c2d8aca9481d6c51c674f5727f97adec04
* Replaced Math.Pow with left shift operator
* Cleaned up the formatting of ChannelPermission and GuildPermission enums to make it easier to read
2017-10-25 20:39:26 -04:00
Alex Gravely
e00f17fe55
Move DeleteMessagesAsync from IMessageChannel to ITextChannel ( #829 )
2017-10-01 15:37:13 -04:00
Christopher F
fc5adca94e
Obsolete TokenType.User
2017-09-27 18:17:48 -04:00
Chris Johnston
30e867a183
Implement welcome message channels ( #819 )
2017-09-23 17:00:08 -04:00
Christopher F
4846264074
Add IsNsfw to TextChannelProperties
2017-08-29 17:42:00 -04:00
Christopher F
608bc359ee
Removed IChannel#Nsfw, added to ITextChannel
2017-08-29 17:26:36 -04:00
Christopher F
5d7f2fc7ec
Add GetReactionUsersAsync(IEmote) overload ( #731 )
...
* Add GetReactionUsersAsync(IEmote) overload
Resolves #730
* Remove obsolete GetReactionUsersAsync(string) overload
2017-08-29 17:09:28 -04:00
Hsu Still
0de5d5b02b
Added SendFileAsync ( #774 )
2017-08-29 16:57:47 -04:00
Christopher F
506a6c96c9
Throw when attempting to add or remove a member's EveryoneRole ( #781 )
...
* Throw when attempting to add or remove a member's EveryoneRole
This resolves #780
* Removed braces
2017-08-17 02:59:58 -03:00
Pat Murphy
d89804d7c7
Fix potential nullref in embedBuilder value setter ( #734 )
...
* Fix potential nullref in embedBuilder value setter
* Null check on footer iconUrl
* Adding checks for the other URL properties
* Adding IsNullOrUri extension
* Setting StringExtensions as internal
2017-07-05 20:56:43 -03:00
RogueException
394e0aa4d1
Reorganized properties in Emoji.cs
2017-06-29 18:06:12 -03:00
Pat Murphy
224d0403db
Adding Equals() overloads for reactions/emotes ( #723 )
2017-06-29 18:05:16 -03:00
Alex Gravely
41222eafeb
Add color presets. ( #725 )
...
* Add DiscordColors struct
* Moved presets to Discord.Color
2017-06-29 17:40:40 -03:00
Christopher F
7837c4862c
Revert change of all Url types on IEmbed to string ( #724 )
2017-06-29 17:38:05 -03:00
Christopher F
1ce1c019b3
Add support for audit log reasons ( #708 )
...
* Add support for audit log reasons
* Made changes per discussion
2017-06-29 17:01:59 -03:00
Christopher F
daae56e37e
Merge remote-tracking branch 'origin/dev' into dev
2017-06-27 08:49:53 -04:00
Christopher F
1d612f15c8
ToString on types of IEmote should return a chat formatted string
2017-06-27 08:49:46 -04:00
FiniteReality
107f1b5803
Add 'tweet' embed type
2017-06-24 22:09:46 +01:00
Christopher F
ea685b4f23
Add 'article' EmbedType
2017-06-23 14:33:41 -04:00
Amir Zaidi
d088d7b05c
Add packetLoss argument for PCM streams, change FrameBytes to FrameSamplesPerChannel in OpusEncodeStream ( #677 )
2017-06-23 11:48:42 -03:00
Christopher F
256af0b269
Merge remote-tracking branch 'origin/issues/667' into dev
2017-06-23 10:42:19 -04:00
Pat Murphy
5601d00285
Add various property validation in EmbedBuilder ( #711 )
...
* Add various property validation in EmbedBuilder
* Embed URI changes
Changes property types for any URLs in Embeds to System.URI.
Adding field name/value null/empty checks.
* including property names in argumentexceptions
* Adds overall embed length check
2017-06-23 11:29:55 -03:00
Christopher F
fb0a056d76
Add IUser#SendMessageAsync extension ( #706 )
...
* Add IUser#SendMessageAsync extension
* Add ConfigureAwait
2017-06-23 11:29:39 -03:00
Christopher F
0708bc5d48
Add EmbedType enum
2017-06-16 22:39:40 -04:00
Christopher F
1942637380
Merge pull request #656 from AntiTcb/fix/GetDMChannelAsync
...
Remove IUser.CreateDMChannelAsync / Fix SocketGlobalUser.DMChannel
2017-06-16 21:22:56 -04:00
AntiTcb
fb57a61432
Rename to GetOrCreateDMChannelAsync
2017-06-16 20:43:50 -04:00
Alex Gravely
8c2a46e9e7
Add ulong overload to IMessageChannel.DeleteMessagesAsync ( #649 )
2017-06-15 12:05:41 -03:00
Christopher F
23eda77f95
Merge pull request #680 from BlockBuilder57/patch-1
...
Add newest verification level
2017-06-15 10:44:59 -04:00
Izumemori
1d096a7fc5
Fix spelling
2017-06-13 01:58:54 +02:00
BlockBuilder57
2ef53330fb
Add newest verification level
...
Users must have a verified phone on their Discord account.
http://i.imgur.com/BexDgzS.png
2017-05-29 13:33:28 -05:00
AntiTcb
73611d1fab
Remove IUser.CreateDMChannelAsync, implicitly implement IUser.GetDMChannelAsync
2017-05-27 14:47:12 -04:00
RogueException
333881a711
Expose audio header more often
2017-05-25 13:54:57 -03:00
RogueException
285a0e5817
Updated deps, cleaned csprojs
2017-05-09 20:51:00 -03:00
Christopher F
576a52cdc6
Restructure and replace emojis with a new emote system ( #619 )
2017-05-04 12:52:48 -03:00
Christopher F
7f1fc286cf
Add IChannel.Nsfw, RequireNsfw precondition ( #633 )
...
* Add IChannel.Nsfw, RequireNsfw precondition
* Refactored IChannel.Nsfw to IsNsfw, removed NsfwUtils
Per pull-request feedback
* proper nsfw channel check
2017-05-04 12:49:32 -03:00
RogueException
bd85bbf30a
Moved UserAgent to DiscordConfig
2017-04-26 13:06:34 -03:00
RogueException
a306d83283
Added net45 TFM
2017-04-26 10:25:08 -03:00
RogueException
f8b9acc4a1
Use implicit package references ( #626 )
2017-04-26 10:03:23 -03:00
RogueException
582b8f9637
Added ChannelName/GuildName to IInvite
2017-04-26 09:45:19 -03:00
Christopher F
431b7fbd9f
Visual Studio C#7 suggestions
2017-04-23 15:23:06 -04:00
Christopher F
6000b15c4d
C#7 TODOs
2017-04-23 15:13:31 -04:00
RogueException
e762dddfbb
Added SnowflakeUtils
2017-04-19 14:50:33 -03:00
Christopher F
660d4b0bf6
Add an upper limit to prune length when banning a user ( #611 )
...
Messages may only be pruned between 0 and 7 days, otherwise a 400 will be thrown.
2017-04-15 19:03:19 -03:00