Joe4evr
4a9c8168a9
Add grouping of preconditions to allow for flexible precondition logic. ( #672 )
...
* Add grouping of preconditions to allow for flexible precondition logic.
* Fix checking Module Preconditions twice (and none of the command's own)
* Fix command preconditions group 0 looping over every other precondition anyway #whoopsies
* Use custom message when a non-zero Precondition Group fails.
* Fix doc comment rendering.
* Refactor loops into local function
* Considering a new result type
* Switch to IReadOnlyCollection<T> and fix compiler errors
* Revert PreconditionResult -> IResult in return types - Change PreconditionResult to a class that PreconditionGroupResult inherits.
* Feedback on property name.
* Change grouping type int -> string
* Explicitly use an ordinal StringComparer
* Full stops on error messages
* Remove some sillyness.
* Remove unneeded using.
2017-06-23 11:28:22 -03:00
Christopher F
d44d5e7198
Merge pull request #710 from FiniteReality/issue/704
...
Change wording of permission preconditions
2017-06-20 21:03:33 -04:00
FiniteReality
0550006d56
Change wording of permission preconditions
...
Also fix an issue where RequireBotPermission may throw if used in a
non-guild channel which required guild permissions.
2017-06-17 15:10:35 +01: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
6ad4889a9e
Merge pull request #651 from Bond-009/patch-1
...
Remove wrong parameter from FFMPEG audio example
2017-06-15 10:45:19 -04:00
Christopher F
23eda77f95
Merge pull request #680 from BlockBuilder57/patch-1
...
Add newest verification level
2017-06-15 10:44:59 -04:00
Christopher F
9a8d914735
Merge pull request #642 from Fr0sZ/patch-1
...
Fixed exemple calling old non existing function.
2017-06-15 10:44:45 -04:00
Christopher F
699ac29ff5
Merge pull request #645 from Bond-009/patch-2
...
Update the example precondition to use IServiceProvider
2017-06-15 10:44:33 -04:00
Christopher F
77bf841d1d
Merge pull request #669 from Bond-009/cmddocs
...
Update cmd docs to use IServiceProvider
2017-06-15 10:43:14 -04:00
Drew
fb01e16b36
Fixed dead link ( #662 )
...
* Update intro.md
* Update intro.md
* Update intro.md
* Update intro.md
* Update intro.md
* Update intro.md
* Update intro.md
2017-06-15 10:43:06 -04:00
Christopher F
1018fa6873
Merge pull request #683 from Joe4evr/QuickstartExtraComments
...
Added/clarified some comments in structure.cs
2017-06-15 10:42:40 -04:00
Christopher F
925ae945e1
Merge pull request #699 from Izumemori/spelling-fix
...
Fix spelling
2017-06-15 10:42:33 -04:00
Joe4evr
b0a3ce5e7c
Respond to feedback.
2017-06-13 10:58:06 +02:00
Izumemori
1d096a7fc5
Fix spelling
2017-06-13 01:58:54 +02:00
Joe4evr
6cdc48bfa6
Move instructions about BuildServiceProvider() up
2017-06-07 04:32:59 +02:00
Joe4evr
12acfec1db
Respond to feedback
2017-06-04 23:44:39 +02:00
Joe4evr
d05191ed05
Added/clarified some comments in structure.cs
2017-05-30 17:54:32 +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
8eb9b2071c
Set hasHeader in SodiumEncrypt
2017-05-25 21:45:41 -03:00
RogueException
333881a711
Expose audio header more often
2017-05-25 13:54:57 -03:00
Bond_009
892eca39fd
Update cmd docs to use IServiceProvider
2017-05-24 21:05:06 +02:00
Christopher F
3fb661a33a
fix docs compile issue
2017-05-21 14:55:47 -04:00
AntiTcb
7db38f32bb
Attach/Remove DMChannel to SocketGlobalUser.DMChannel property
2017-05-16 20:04:25 -04:00
AntiTcb
33a91ba3de
Remove redundant explicit interface definition.
2017-05-16 20:03:38 -04:00
AntiTcb
aeef5d0893
Update DM channel on entity updates.
2017-05-16 20:03:17 -04:00
AntiTcb
6fed78025c
Create DM channel if one does not exist.
2017-05-16 20:02:32 -04:00
Christopher F
588df7b0c7
Merge pull request #653 from Joe4evr/quickstart-rc3
...
Update the quickstart structure example to rc3.
2017-05-14 18:46:18 -04:00
Joe4evr
af5fdec486
Update the quickstart structure to rc3.
2017-05-13 03:15:55 +02:00
Bond-009
a92c27da3b
Remove wrong parameter from FFMPEG audio example
...
This parameter was samples per frame but changed to bitrate. (1920 is a way to low bitrate :) )
2017-05-11 18:01:39 +02:00
RogueException
c01769ef4a
Updated version to 1.0.0-rc3
2017-05-11 00:03:38 -03:00
RogueException
4c7fad78e1
Build promises when guild is unavailable
2017-05-10 19:28:25 -03:00
RogueException
feebcb4838
Update System.Net.Http to 4.3.2
2017-05-09 20:55:54 -03:00
RogueException
285a0e5817
Updated deps, cleaned csprojs
2017-05-09 20:51:00 -03:00
FiniteReality
1e888cde24
Fix CheckPreconditions giving empty service provider
...
Parameter preconditions were always getting the empty service provider,
even when a custom one was provided in ExecuteAsync, which means that
preconditions which use services cannot work properly.
2017-05-08 22:15:47 +01:00
Christopher F
32feb0a9cf
Merge pull request #646 from FiniteReality/dev
...
Remove CommandService.BuildServiceCollection
2017-05-06 13:29:49 -04:00
FiniteReality
00895b1227
Remove CommandService.BuildServiceCollection
...
💥
2017-05-06 18:25:44 +01:00
Bond-009
a1a90ae46e
Update the example precondition to use IServiceProvider
2017-05-06 11:33:33 +02:00
Finite Reality
112a434424
Allow for case-insensitive HasStringPrefix ( #644 )
...
This was 👍 'd in the dev chat, I forgot to make a PR for it (whoops!)
2017-05-06 02:39:46 -03:00
Victor Möller
8f59d4423f
Fixed exemple calling old non existing function.
2017-05-04 18:29:04 +02:00
Sindre Langhus
82a413ace6
Fix for empty user objects after GUILD_MEMBER_REMOVE ( #641 )
...
* Made GetOrCreateUser always call AddRef and added check to PRESENCE_UPDATE to avoid readding users who have been removed from guilds
* Removed AddRef as per dev guild discussion
2017-05-04 13:16:33 -03:00
RogueException
870dc50a68
Fixed RequireNsfwAttribute definition
2017-05-04 13:15:51 -03:00
RogueException
4a128b326b
Increment globaluser refs on private channel creation
2017-05-04 13:14:35 -03:00
RogueException
bd5ec0a29a
Increment GlobalUser reference count on GuildUser creation
2017-05-04 13:09:55 -03:00
Christopher F
d189bb9748
Expose the 'fields' collection on EmbedBuilder ( #603 )
...
* remove tip in docs about SocketEntity.Discord
* Expose the 'Fields' collection on EmbedBuilder
After some discussion I decided that there was really no reason to keep this private, and it didn't really go along with the rest of the design of the EmbedBuilder.
This is NOT a breaking change.
Exposing this property should not have any negative effects.
* Don't allow EmbedBuilder's Fields to be set to null
2017-05-04 12:53:40 -03:00
Christopher F
576a52cdc6
Restructure and replace emojis with a new emote system ( #619 )
2017-05-04 12:52:48 -03:00
RogueException
ba1982a3f9
Replaced DependencyMap with ServiceCollection and IServiceProvider ( #625 )
2017-05-04 12:52:26 -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