Commit Graph

2136 Commits

Author SHA1 Message Date
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
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
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
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
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
FiniteReality
05fb81c617 Fix a bunch of issues with aliases 2016-11-20 20:20:23 +00:00
FiniteReality
fd5e237b41 Fix commands from being created with invalid aliases 2016-11-20 13:55:55 +00:00
RogueException
ff33b3b7a3 Merge branch 'Davipb-issues/262' into dev 2016-11-19 09:33:17 -04:00
Davipb
b0286975cd Fix parsing of multiple quoted parameters
This should Fix #262
2016-11-19 11:05:53 -02:00
RogueException
d1b25011dd Merge pull request #362 from aequasi/patch-1
Updating CDN url
2016-11-19 00:24:32 -04: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
4553aa6557 Merge branch 'FiniteReality-feature/command-builders' into dev 2016-11-18 06:11:42 -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
f417c2b516 Removed no-build from build script 2016-11-17 19:48:04 -04:00
RogueException
c74a44d3ad Minor edit 2016-11-17 16:42:00 -04:00
RogueException
f3a9abb95a Improved compilation dependencies in README 2016-11-17 16:41:06 -04:00
RogueException
675dab70f0 Update compiling and known issues in README 2016-11-17 16:30:37 -04:00
RogueException
d21dd7d943 Minor edit 2016-11-17 16:25:56 -04:00