Commit Graph

483 Commits

Author SHA1 Message Date
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
RogueException
8d9e11c08a Exposed IAudioClient.SetSpeakingAsync 2017-04-10 18:00:42 -03:00
RogueException
79fd14a95f Various audio fixes 2017-04-09 01:05:52 -03:00
RogueException
6a0c57cfe4 Add range checks to new overload 2017-04-08 17:24:02 -03:00
RogueException
0ce313c408 Added int constructor to Color 2017-04-08 17:15:57 -03:00
RogueException
e92cfd20ac Audio bugfixes and improvements. 2017-04-08 17:12:10 -03:00
RogueException
b62c9dc315 Added UdpLatency to IAudioClient 2017-04-07 22:53:27 -03:00
RogueException
c49118e25f Fixed several audio stream issues 2017-04-04 00:47:34 -03:00
RogueException
f3b8937686 Added TryReadFrame and AvailableFrames to AudioInStream 2017-04-03 17:38:28 -03:00
RogueException
1b1ff1325f Fixed Discord.Net.Core's description 2017-04-03 07:43:29 -03:00
RogueException
d6b6a95a2e Renamed ClientAPIUrl -> APIUrl 2017-04-03 02:59:11 -03:00
RogueException
e0e28c6dd1 Changed EmbedChannel's type to GuildChannel 2017-04-01 21:49:34 -03:00
RogueException
909127d330 InputStream reads should wait until data is available. 2017-04-01 13:13:20 -03:00