Commit Graph

2169 Commits

Author SHA1 Message Date
FiniteReality
d2d7b4dce7 Make _typeReaderTypeInfo static
Seems I missed this originally, whoops.
2016-12-03 23:49:05 +00:00
FiniteReality
156483bf71 Rename overridenType to overridenTypeReader
The previous name was causing some confusion
2016-12-03 23:49:05 +00:00
FiniteReality
f11f416024 Add IDependencyMap to parameter preconditions 2016-12-03 23:49:05 +00:00
FiniteReality
b7a5ee6542 Parameter preconditions and typereader overriding 2016-12-03 23:49:05 +00:00
Christopher F
d8c0f0aa4c [docs] fix xrefs 2016-12-03 16:46:49 -05:00
Christopher F
779aaffbf4 [docs] rewrite commands, update samples 2016-12-03 16:41:45 -05:00
Christopher F
2cae0bda79 Merge pull request #393 from Nikey646/patch-1
EmbedBuilder.WithImageUrl() now uses the value passed
2016-12-01 18:41:50 -05:00
Nikey646
11f507e26a EmbedBuilder.WithImageUrl() now uses the value passed 2016-12-01 12:04:32 +11:00
RogueException
aceac76d1d Merge pull request #387 from james7132/timespan-reader
Add TimeSpan TypeReader
2016-11-28 17:52:26 -04:00
james7132
3e35666186 Add TimeSpan TypeReader 2016-11-27 01:57:12 -08:00
RogueException
08ae9e4e86 Fixed logic in precondition attribute docstrings 2016-11-27 01:13:29 -04:00
RogueException
2a33bb0c12 Escaped amp in XML example. 2016-11-27 01:07:19 -04:00
RogueException
f56a1b653d Cleaned up Reactions PR 2016-11-27 00:55:01 -04:00
RogueException
2e1ec5803b Added AddReactions to Permission constructors 2016-11-27 00:41:03 -04:00
RogueException
6100aa93ab Merge branch 'feature/reactions' into dev 2016-11-27 00:31:19 -04:00
RogueException
b9eeac9105 Merge branch 'dev' into feature/reactions 2016-11-27 00:30:46 -04:00
RogueException
08d85cd2d9 Merge pull request #375 from LassieME/embed/fix-urls-add-timestamp
Adds Timestamps to embeds, and removes Image and Thumbnail-Builders
2016-11-27 00:20:15 -04:00
Christopher F
1406943bf9 Merge pull request #381 from RogueException/issue/268
Add configuration option for case insensitive commands
2016-11-26 23:17:12 -05:00
Christopher F
d72122eef9 Resolve conflicts. 2016-11-26 23:15:36 -05:00
Christopher F
ecc3d9c729 Add configuration option for case insensitive commands
Currently, commands are case-sensitive. This PR allows for commands to be case insensitive (which is now the default option).
2016-11-26 23:12:23 -05:00
RogueException
2daf6cb16c Merge pull request #378 from RogueException/issue/224
Close the WebSocket when disconnecting
2016-11-26 23:52:15 -04:00
RogueException
d74257cb69 Drop applicationinfo cache on logout, fixed RPC appinfo exception. 2016-11-26 23:51:23 -04:00
RogueException
c99c78a2fe Merge branch 'feature/more-preconditions' into dev 2016-11-26 23:41:55 -04:00
RogueException
a0c9ba92db Merge branch 'dev' into feature/more-preconditions 2016-11-26 23:41:45 -04:00
RogueException
80da813acc Merge pull request #383 from RogueException/feature/color-improvements
Throw an exception when creating a Color with an invalid float value
2016-11-26 23:33:54 -04:00
Christopher F
55f6efd080 Merge branch 'issue/365'
Conflicts:
	src/Discord.Net.Commands/CommandService.cs
2016-11-26 22:26:47 -05:00
Christopher F
9d4339e695 Fix a few typos in Color constraint logic 2016-11-26 22:13:43 -05:00
Christopher F
fb99b019a0 Fix issues with DefaultRunMode
For a command to use the DefaultRunMode, it must now have it's RunMode set to RunMode.Default (this is the default value on CommandAttribute now).
2016-11-26 22:04:02 -05:00
Christopher F
210c360fca Throw an exception when creating a Color with an invalid float value
This prevents a 400 when sending a malformed color to Discord.
2016-11-26 21:32:21 -05:00
Christopher F
1be6f77efb Don't check message content if an embed is present when modifying 2016-11-26 21:22:35 -05:00
Christopher F
1ed4f703bf Cache the current application on DiscordSocketClient 2016-11-26 14:59:20 -05:00
Sindre Langhus
08b836797b Current timestamp namechange 2016-11-26 04:43:29 +01:00
RogueException
97c3f2bcd1 Merge pull request #380 from RogueException/issue/374
ModifyAsync will accept an EmbedBuilder
2016-11-25 23:32:58 -04:00
RogueException
aefbf1716d Merge pull request #377 from RogueException/issue/368
Add CommandServiceConfig, DefaultRunMode
2016-11-25 23:24:48 -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
58291f8199 Close the WebSocket when disconnecting
This resolves #224
2016-11-25 21:45:56 -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
Christopher F
8222eaff86 Add permissions for reactions 2016-11-25 18:27:20 -05:00
Christopher F
defc8f1c4e Add docstrings to preconditions. 2016-11-25 18:09:18 -05:00
Christopher F
ea148db08b Add RequireBotPermission, rename RequirePermission
This is a breaking change.

Adds a precondition that requires the bot has a specified permission (Resolves #211).

Renames RequirePermission to RequireUserPermission.
2016-11-25 17:48:08 -05:00
Christopher F
fdecfe6bd4 Add RequireOwner Precondition
This precondition will require that the invoker of the command is the owner of the bot.
2016-11-25 17:44:37 -05:00
FiniteReality
5cdda592c1 Add requested changes 2016-11-25 21:19:41 +00:00
FiniteReality
bc76e38ce5 Fix additional issue with aliases building incorrectly 2016-11-25 21:15:39 +00:00
Sindre G. Langhus
54dd0a5cec Fixed ordering. 2016-11-25 21:51:52 +01:00
Sindre G. Langhus
d0158816d3 Adds DateFormatString to DiscordRestApiClient 2016-11-25 17:10:05 +01:00
Sindre G. Langhus
a455ccc334 Adds a timestamp and fixes Volts issues with Thumbnail and Image URLs. 2016-11-24 01:17:39 +01:00
Christopher F
8ec80663f0 Merge pull request #372 from LassieME/embed/add-thumbnail-image-builders
Builders for Thumbnail and Image embeds
2016-11-22 18:36:28 -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