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.
8 years ago
Christopher F
d44d5e7198
Merge pull request #710 from FiniteReality/issue/704
Change wording of permission preconditions
8 years ago
Alex Gravely
6e21d33999
Update events.cs
Forgot a var >_>
8 years ago
Alex Gravely
759da09c38
Update events.cs
Gladly taking suggestions for a better comments.
8 years ago
Christopher F
33e765f8f5
Use StringEnum converter in API model
8 years ago
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.
8 years ago
Christopher F
0708bc5d48
Add EmbedType enum
8 years ago
Christopher F
1942637380
Merge pull request #656 from AntiTcb/fix/GetDMChannelAsync
Remove IUser.CreateDMChannelAsync / Fix SocketGlobalUser.DMChannel
8 years ago
AntiTcb
fb57a61432
Rename to GetOrCreateDMChannelAsync
8 years ago
Alex Gravely
8c2a46e9e7
Add ulong overload to IMessageChannel.DeleteMessagesAsync ( #649 )
8 years ago
Christopher F
6ad4889a9e
Merge pull request #651 from Bond-009/patch-1
Remove wrong parameter from FFMPEG audio example
8 years ago
Christopher F
23eda77f95
Merge pull request #680 from BlockBuilder57/patch-1
Add newest verification level
8 years ago
Christopher F
9a8d914735
Merge pull request #642 from Fr0sZ/patch-1
Fixed exemple calling old non existing function.
8 years ago
Christopher F
699ac29ff5
Merge pull request #645 from Bond-009/patch-2
Update the example precondition to use IServiceProvider
8 years ago
Christopher F
77bf841d1d
Merge pull request #669 from Bond-009/cmddocs
Update cmd docs to use IServiceProvider
8 years ago
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
8 years ago
Christopher F
1018fa6873
Merge pull request #683 from Joe4evr/QuickstartExtraComments
Added/clarified some comments in structure.cs
8 years ago
Christopher F
925ae945e1
Merge pull request #699 from Izumemori/spelling-fix
Fix spelling
8 years ago
Joe4evr
b0a3ce5e7c
Respond to feedback.
8 years ago
Izumemori
1d096a7fc5
Fix spelling
8 years ago
Joe4evr
6cdc48bfa6
Move instructions about BuildServiceProvider() up
8 years ago
Joe4evr
12acfec1db
Respond to feedback
8 years ago
Joe4evr
d05191ed05
Added/clarified some comments in structure.cs
8 years ago
BlockBuilder57
2ef53330fb
Add newest verification level
Users must have a verified phone on their Discord account.
http://i.imgur.com/BexDgzS.png
8 years ago
AntiTcb
73611d1fab
Remove IUser.CreateDMChannelAsync, implicitly implement IUser.GetDMChannelAsync
8 years ago
RogueException
8eb9b2071c
Set hasHeader in SodiumEncrypt
8 years ago
RogueException
333881a711
Expose audio header more often
8 years ago
Bond_009
892eca39fd
Update cmd docs to use IServiceProvider
8 years ago
Christopher F
3fb661a33a
fix docs compile issue
8 years ago
AntiTcb
7db38f32bb
Attach/Remove DMChannel to SocketGlobalUser.DMChannel property
8 years ago
AntiTcb
33a91ba3de
Remove redundant explicit interface definition.
8 years ago
AntiTcb
aeef5d0893
Update DM channel on entity updates.
8 years ago
AntiTcb
6fed78025c
Create DM channel if one does not exist.
8 years ago
ObsidianMinor
652fd30f65
Fixed RestGuildUser not updating RestUser properties
8 years ago
Christopher F
588df7b0c7
Merge pull request #653 from Joe4evr/quickstart-rc3
Update the quickstart structure example to rc3.
8 years ago
Joe4evr
af5fdec486
Update the quickstart structure to rc3.
8 years ago
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 :) )
8 years ago
RogueException
c01769ef4a
Updated version to 1.0.0-rc3
8 years ago
RogueException
4c7fad78e1
Build promises when guild is unavailable
8 years ago
RogueException
feebcb4838
Update System.Net.Http to 4.3.2
8 years ago
RogueException
285a0e5817
Updated deps, cleaned csprojs
8 years ago
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.
8 years ago
Christopher F
32feb0a9cf
Merge pull request #646 from FiniteReality/dev
Remove CommandService.BuildServiceCollection
8 years ago
FiniteReality
00895b1227
Remove CommandService.BuildServiceCollection
💥
8 years ago
Bond-009
a1a90ae46e
Update the example precondition to use IServiceProvider
8 years ago
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!)
8 years ago
Victor Möller
8f59d4423f
Fixed exemple calling old non existing function.
8 years ago
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
8 years ago
RogueException
870dc50a68
Fixed RequireNsfwAttribute definition
8 years ago
RogueException
4a128b326b
Increment globaluser refs on private channel creation
8 years ago