Commit Graph

2470 Commits

Author SHA1 Message Date
RogueException
21959fe43c Fixed several permission issues 2017-03-18 10:36:37 -03:00
Finite Reality
2160e5dac8 Improve parameter precondition type safety (#532)
* Improve parameter precondition type safety

Also removes some terrible code which was left over when I first
implemented parameter preconditions. I don't know why that was there.

With this commit, parameter preconditions should be much safer as they
use generic methods instead of janky casting of objects.

* Remove generic CheckPreconditions method
2017-03-18 09:55:53 -03:00
RogueException
96a377a258 If discord error code is 0, fall back to http code 2017-03-18 09:32:04 -03:00
Confruggy
fbd34d6719 Update MessageHelper.cs (#508) 2017-03-18 08:57:56 -03:00
Finite Reality
3ddb01a5a2 Fix order of iteration in ExecuteAsync (#534) 2017-03-18 08:55:56 -03:00
Mateusz Brawański
efbd3cb681 GuildUserExtensions removed in favour of atomic role add/remove endpoints (#540)
* Removed GuildUserExtensions and moved the methods to IGuildUser and implementations

* Made changes per fox's suggestion: Change->Modify. New Modify overload.

* Oops

* Per Volt: reimplemented new endpoints

* Fixing broken docstrings

* I forgot that docstrings are XML

* Implemented atomic add/remove role endpoints

* Removed  so people aren't irked

* Added single-item role add/remove methods
2017-03-18 08:54:49 -03:00
RogueException
11ba30c6fa Cleaned up DepMap type checks 2017-03-18 08:48:18 -03:00
RogueException
334ceacdbf Merge pull request #546 from khionu/dev
Fix detection of IDependencyMap impl
2017-03-18 08:42:57 -03:00
RogueException
84b3d24175 Merge pull request #549 from Mushroom/reactions
Added support for reaction 'me' field
2017-03-18 08:40:55 -03:00
RogueException
683541ba24 Added RequireOwner support for User tokens 2017-03-18 08:38:24 -03:00
RogueException
458deb4332 Merge pull request #560 from Flamanis/patch-1
UserTypeReader ArgumentNullException in DM
2017-03-18 08:31:28 -03:00
RogueException
711a4e90a4 Renamed AvatarFormat -> ImageFormat. Cleaned up. 2017-03-18 08:30:33 -03:00
RogueException
6dd2e0a708 Merge pull request #573 from james7132/auto-avatar
Automatic animated avatar detection
2017-03-18 08:24:31 -03:00
RogueException
cc11d667e3 Merge pull request #574 from Sentinent/get-userreactions-fix
Fixed GetReactionsUsersAsync returning an empty enumerable
2017-03-18 08:22:48 -03:00
james7132
bd0a329912 Simplify format logic 2017-03-16 16:06:40 +00:00
RogueException
587ec65e79 Added Discord.Net.Webhook 2017-03-16 05:35:01 -03:00
RogueException
2b16c8620d Avoid catching log errors 2017-03-15 23:40:25 -03:00
RogueException
254c83ecff Started adding audio receive 2017-03-15 23:40:25 -03:00
RogueException
1d5b7a2b01 Removed Unknown status 2017-03-15 23:40:25 -03:00
RogueException
3bd920ce66 Merged UserPresenceUpdated into UserUpdated 2017-03-15 23:40:25 -03:00
Sentinent
58d9fb1ed6 Fixed GetReactionsUsersAsync returning an empty enumerable 2017-03-14 21:46:14 -07:00
james7132
46b6b8c03b Review fixes 2017-03-15 00:48:37 +00:00
james7132
bfc4fd686e Automatic animated avatar detection 2017-03-15 00:33:07 +00:00
Christopher F
506b4ff36a Merge pull request #571 from LeafyDev/patch-1
Update audio_ffmpeg.cs
2017-03-14 15:38:47 -04:00
Christopher F
afdea0cec8 Merge pull request #572 from Bond-009/patch-2
Fixed the example precondition attribute
2017-03-14 15:38:28 -04:00
Christopher F
6ce0828989 Merge pull request #565 from Bond-009/patch-1
Add installing with nuget using VSC to guides
2017-03-14 15:35:43 -04:00
Bond-009
22f5e8ff46 Fixed the example precondition attribute 2017-03-14 20:10:37 +01:00
William Haskell
ab43f82771 Update audio_ffmpeg.cs
AudioApplication is a required argument
2017-03-14 18:47:28 +01:00
RogueException
92028f59e9 Removed SocketClient's explicit ConnectionState 2017-03-13 22:25:38 -03:00
RogueException
900b9b082e Removed persistant guild list for user downloads 2017-03-13 22:17:35 -03:00
RogueException
cab41851ba Prevent duplicate GuildUnavailables 2017-03-13 22:14:30 -03:00
RogueException
7e7df27024 Ready event waits until guilds are downloaded 2017-03-13 22:14:30 -03:00
Bond-009
59a530fe1c Add installing with nuget using VSC to guides 2017-03-13 17:02:39 +01:00
Christopher F
d111214bff Added new getting started guide
Thanks @MinnDevelopment for his awesome work on
the JDA guide that had no influence here at all.
2017-03-11 15:32:14 -05:00
Christopher F
bea5e37db8 Add installing guide
🥄 better docs soon come
2017-03-10 20:38:55 -05:00
Christopher F
1e0ae66f52 Merge pull request #558 from Joe4evr/patch-1
ConnectAsync -> StartAsync
2017-03-10 19:37:07 -05:00
Christopher F
bb78c50b6f Fix ConnectionState on DiscordSocketClient
This should resolve a plethora of relates issues, including user downloading not working (#542), possibly #531
2017-03-09 19:25:43 -05:00
Flamanis
94ea80b45e Modified User#Discrim check to properly check guild 2017-03-08 00:51:10 -06:00
Flamanis
dc2230de86 guildUsers instantiated to empty collection, removed added nullchecks
A null conditional operator was required at line 70 to avoid a nullref.
2017-03-08 00:48:18 -06:00
Flamanis
c643ceaa47 Add space after if and before ( 2017-03-07 18:41:31 -06:00
Flamanis
b5f80a7a6c Should fix Linq ArgumentNullException 2017-03-07 18:29:53 -06:00
Joe4evr
4b4506f243 ConnectAsync -> StartAsync 2017-03-07 17:19:51 +01:00
Mushroom
78076bd9df Added support for reaction 'me' field 2017-03-03 01:51:46 +00:00
RogueException
1b0e47be42 Fixed SocketRole.CompareTo 2017-03-02 06:55:09 -04:00
RogueException
8c75e0d581 Fixed a couple audio bugs 2017-03-02 06:12:14 -04:00
RogueException
1cd67c2467 Allow EmbedFieldBuilder to take object values 2017-03-02 06:00:13 -04:00
Khionu Sybiern
ba406bb646 Split typechecks into their own conditions 2017-03-02 01:39:45 -05:00
Christopher F
5e1d84d918 Merge pull request #395 from LassieME/issue/359
Conflicts:
	src/Discord.Net.WebSocket/DiscordSocketClient.cs
2017-03-01 17:34:39 -05:00
RogueException
34361fa64a Merge pull request #537 from RogueException/issue/477
Check that messages older than two weeks are not passed to bulk delete
2017-03-01 18:19:43 -04:00
Christopher F
66b7e0e7f0 Rename precondition to 'YoungerThanTwoWeeks' 2017-03-01 17:16:06 -05:00