Commit Graph

1809 Commits

Author SHA1 Message Date
Christopher F
1be6f77efb Don't check message content if an embed is present when modifying 2016-11-26 21:22:35 -05:00
RogueException
97c3f2bcd1 Merge pull request #380 from RogueException/issue/374
ModifyAsync will accept an EmbedBuilder
2016-11-25 23:32:58 -04:00
Christopher F
6519b300d9 ModifyAsync will accept an EmbedBuilder
**This is not a breaking change**.

This change begins to implement #379, where IUserMessage.ModifyAsync will now accept a `Discord.ModifyMessageParams` func over a `Discord.API.Rest.ModifyMessageParams` func.
2016-11-25 22:12:28 -05:00
Christopher F
f9c5e229d0 Add CommandServiceConfig, DefaultRunMode
This adds an (optional) CommandServiceConfig, as well as a DefaultRunMode for commands.

This resolves #368 (for commands where a RunMode is not explicitly specified, a custom default value should be used)
2016-11-25 18:49:35 -05:00
Sindre G. Langhus
8cf0911a4b DebuggerDisplay fix. 2016-11-23 00:35:31 +01:00
Sindre G. Langhus
4cb7929735 Spacing 2016-11-23 00:27:33 +01:00
Sindre G. Langhus
f8e3ac9910 Something like this perhaps 2016-11-23 00:10:01 +01:00
Sindre G. Langhus
6cdf5ee90e Removed Height/Width. 2016-11-22 23:38:43 +01:00
Sindre G. Langhus
09608b79c3 Adds builders for Thumbnail and Image embeds, and adds json model for Video and Image embeds. 2016-11-22 22:22:16 +01:00
Davipb
b0286975cd Fix parsing of multiple quoted parameters
This should Fix #262
2016-11-19 11:05:53 -02:00
Aaron Scherer
8b8163fc2c Updating CDN url 2016-11-18 15:16:42 -08:00
RogueException
9784a0324c Create a RestUser for messages if a user isn't cached. 2016-11-18 14:25:01 -04:00
RogueException
53ee30c648 Virtual channels should not be exposed to socket classes. Dont store guild in messages. 2016-11-18 14:14:11 -04:00
RogueException
3a5e4b23da Added IGuildUser.ChangeRolesAsync 2016-11-18 09:00:01 -04:00
RogueException
2c990f08f8 Readded fluent-style to EmbedBuilder 2016-11-18 08:33:34 -04:00
RogueException
593ba46f1c Cleaned up command builders and async func names 2016-11-18 08:18:00 -04:00
RogueException
7505831998 Added custom messages to Preconditions 2016-11-18 06:36:51 -04:00
RogueException
a73e411edb Merge branch 'feature/command-builders' of git://github.com/FiniteReality/Discord.Net into FiniteReality-feature/command-builders 2016-11-18 06:11:07 -04:00
FiniteReality
196cce05af Clean up attribute checking and extraneous casts
This probably isn't all of them. This is what I get for copy+pasting code.
2016-11-18 09:24:31 +00:00
FiniteReality
de645548a9 Complete command builders implementation
In theory this should just work, more testing is needed though
2016-11-18 09:14:19 +00:00
RogueException
42cbd67ee0 Removed prerelease tag from project.json 2016-11-17 16:23:12 -04:00
RogueException
cf42bd1854 Restored project.json and old build script 2016-11-17 16:18:49 -04:00
RogueException
9b79019b54 Merge pull request #355 from AntiTcb/fix/enumTypeReader
Values in ImmutableDictionaries were strings rather than enumType
2016-11-17 15:24:17 -04:00
RogueException
0f674d2404 Updated dependencies to .NET Core 1.1 2016-11-17 17:30:51 -04:00
ObsidianMinor
ddca1bc6a4 Migrated projects to Visual Studio 2017 2016-11-17 10:05:30 -06:00
AntiTcb
ef0337752e Proper fix this time, fully tested on names and values. 2016-11-16 23:16:37 -05:00
FiniteReality
6d46347ebc Finish implementation of command builders 2016-11-16 21:01:11 +00:00
RogueException
228209aec8 Ensure rate limits are updated when requests fail 2016-11-16 16:26:06 -04:00
RogueException
853f8f2e6b Added prefixless TagHandling, added startIndex to resolve, fixed bugs. 2016-11-16 16:26:06 -04:00
AntiTcb
59d393b357 Values in ImmutableDictionaries were strings rather than enumType 2016-11-16 11:43:23 -05:00
FiniteReality
ab95ced41d Use default TypeReader if not overriden 2016-11-15 21:57:27 +00:00
FiniteReality
d25fbf78c0 Use lambda-style subbuilders 2016-11-15 21:50:10 +00:00
FiniteReality
af433c82cc Complete builders, start work on using them 2016-11-15 21:28:04 +00:00
RogueException
cabbd0de89 Dont nullref in SendMessageAsync if no embed is provided 2016-11-14 22:48:55 -04:00
RogueException
bdb44f3606 Minor edit 2016-11-14 20:28:34 -04:00
RogueException
4180856e39 Merge branch 'fix/enumTypeReader' of git://github.com/AntiTcb/Discord.Net into AntiTcb-fix/enumTypeReader 2016-11-14 20:17:54 -04:00
RogueException
af6c3e10c3 Cleaned up EmbedBuilder 2016-11-14 20:16:24 -04:00
RogueException
c2722cf7c4 SendMessage should accept EmbedBuilder directly 2016-11-14 20:05:43 -04:00
RogueException
8c5f5ffb7d Merge branch 'dev' into feature/rich-embeds 2016-11-14 19:58:58 -04:00
FiniteReality
f95154af23 Start work on command builders
Right now commands require a module before they can be created;
I'm looking to remove this in the future.
2016-11-14 19:36:48 +00:00
RogueException
b2948deaf7 Fixed unused timeout const, dropped default request timeout to 15s. 2016-11-14 08:43:12 -04:00
RogueException
4633735ae9 Created ClientBucketType enum 2016-11-14 08:15:41 -04:00
RogueException
91e6cb98c3 Merged request BucketId and ClientBucketId. Added IsClientBucket. 2016-11-14 08:15:41 -04:00
RogueException
2e95e4232f Disabled rate limit debugging by default 2016-11-14 08:15:40 -04:00
RogueException
7773e1d1cb Removed old GetBucketId function 2016-11-14 08:15:40 -04:00
RogueException
d402d8bff1 Merge pull request #346 from ObsidianMinor/dev
Make header dictionary ignore case
2016-11-13 16:32:21 -04:00
Christopher F
3698dbfedc Only allow messages with an embed present to be sent with no content 2016-11-13 14:16:49 -05:00
Christopher F
754970bb56 When sending a message with no content, do not send a null value.
Resolves an issue where the ratelimiter would panic.
2016-11-13 13:54:46 -05:00
Christopher F
8866a1499c Allow content to be empty when sending a message 2016-11-13 01:02:44 -05:00
Christopher F
bad7d827c3 Modify SendMessage to include an embeds field 2016-11-13 00:51:40 -05:00