RogueException
dcb603acd7
Cleaned up permission checks, added Permissions.Has(enum) methods
2016-08-09 18:18:50 -03:00
RogueException
e452aa9662
Cleaned up Command Result structs
2016-08-09 17:53:08 -03:00
RogueException
487d947abf
Removed SocketClientExtensions.GetGuildSummaries()
2016-08-09 17:35:54 -03:00
RogueException
153eda472a
Merge pull request #186 from RogueException/issues/185
...
Add Sync Extensions for DiscordSocketClient
2016-08-09 17:34:17 -03:00
RogueException
0b9f9b16a9
Merge pull request #178 from DigiTechs/command_tweaks
...
Command tweaks
2016-08-09 17:31:10 -03:00
RogueException
2b9600686f
Merge pull request #179 from DigiTechs/feature/172
...
Preconditions for commands
2016-08-09 17:30:25 -03:00
RogueException
b13b52a1c4
Added REST Ban model
2016-08-09 17:20:46 -03:00
RogueException
eff995a2a6
Added DebuggerDisplay/ToString to Emoji and GuildEmbed
2016-08-09 17:20:09 -03:00
RogueException
3fb13fa7e1
Disabled warnings on undocumented API classes
2016-08-09 17:06:48 -03:00
Finite Reality
f7633ea3d7
Revert 3856d43 & rename CommandParameter.Description to Summary
2016-08-09 16:37:56 +01:00
Finite Reality
f2d80de343
Fix error with RequirePermission precondition
2016-08-07 17:23:26 +01:00
Christopher F
c2978914e7
Add Extensions for WebSocket->SocketClient
2016-08-06 21:12:43 -04:00
Finite Reality
c77c84bec7
Remove ContextType.Invalid
2016-08-06 00:43:11 +01:00
Finite Reality
6db3f52ac1
eplace DM/Guild preconditions with context
...
The new RequireContextAttribute works just like RequireDM/RequireGuild,
but is more powerful as developers can specify multiple 'contexts' for
their command to require using the ContextType flags.
2016-08-06 00:15:11 +01:00
RogueException
f6931d4b8a
Ignore doc warnings during Release build
2016-08-05 16:29:08 -03:00
RogueException
f01cde36f9
Merge pull request #182 from Joe4evr/xmldocs
...
Include XML Docs when building.
2016-08-05 16:20:36 -03:00
Joe4evr
911faaf29e
Include XML Docs when building.
2016-08-05 19:13:26 +02:00
Finite Reality
86092f9253
Rename Synopsis to Summary to improve clarity
2016-08-05 00:17:29 +01:00
Finite Reality
11f1163ec2
Add Command and module instance parameters to CheckPermissions
...
After a small discussion with Joe4evr on discord, a way of retrieving the
state of a module appeared to be needed. The new override should provide
enough context to a bot dev to allow them to do what they want.
2016-08-04 23:31:21 +01:00
Finite Reality
1e72eca34a
Remove Preconditions check from Command.Execute
...
Preconditions are still handled by CommandService.Execute
2016-08-04 21:48:44 +01:00
Finite Reality
046d56cab5
Add module-level preconditions and precondition for individual permissions
2016-08-04 19:36:14 +01:00
Christopher F
259af8ecf5
Merge pull request #180 from Mushroom/dev
...
Adjust CDN url from 'discordappcdn.com' to 'discordcdn.com'
2016-08-03 23:46:35 -04:00
Mushroom
ae871dfc21
Fixed the CDN url
2016-08-04 01:48:20 +01:00
Khionu Terabite
664d3200b6
Updated CDN Url to new domain
2016-08-03 13:09:33 -04:00
Finite Reality
0e920da21f
Complete Preconditions implementation
2016-08-03 17:21:38 +01:00
Finite Reality
a5393dc937
Rename Permission to Precondition
2016-08-03 16:50:51 +01:00
Finite Reality
023703c996
Add logic to CommandService.Execute to handle basic permissions checks
2016-08-03 16:43:25 +01:00
Finite Reality
47089448dd
Fix Synopsis/Description mix-up
2016-08-03 16:33:26 +01:00
Finite Reality
757c36ccd1
Rename and move things about
2016-08-03 16:09:58 +01:00
Finite Reality
619e884506
Merge branch 'dev' of https://github.com/RogueException/Discord.Net.git
2016-08-03 15:34:53 +01:00
Finite Reality
8c0d4b6123
Improve command documentation features
2016-08-02 23:08:33 +01:00
Finite Reality
3856d43587
Remove Modules enumerable, change Commands to ILookup
2016-08-02 23:08:32 +01:00
Finite Reality
eb38bdd437
Fix indentation
2016-08-02 17:54:52 +01:00
Finite Reality
772fd97080
Implement initial command permissions system
...
After our initial discussion on the matter (see #172 ) this is the system
that we all seem to have agreed on. As a result, I have implemented a
simple system which effectively implements permissions, while being
extensible and tweakable so bot devs can decide what they want to do for
permissions.
As for default 'permissions', I'm not sure what the best approach would be
here; bot devs are likely to implement their own permissions 'levels' and
use those. I think the most we could do for now is add attributes to
require certain users (by id) and certain roles (by id and possibly by
name?) This would probably be the best option for now as it requires less
work from us, nor do we know the *exact* approach bot devs want to take
with permissions.
2016-08-02 17:29:39 +01:00
RogueException
dcd13e98e9
Cleaned up Disconnect function locking
2016-08-01 22:50:57 -03:00
RogueException
9fc92d016d
Don't TrySetException with a null exception
2016-08-01 22:39:36 -03:00
Christopher F
c6115ea7f6
[docs] Document TypeReaders, Events, and Joining Audio
2016-08-01 21:05:40 -04:00
RogueException
cbdcc5f46a
Removed Extensions namespace
2016-08-01 21:49:54 -03:00
RogueException
79d5ae7779
Fixed nickname null check, hid internal method
2016-08-01 21:49:54 -03:00
Christopher F
4dcbff16fd
[docs] Rename FAQs to Samples
2016-08-01 19:49:00 -04:00
RogueException
c98bd6820e
Fixed VoiceChannel.ConnectAsync nullref and race conditions
2016-08-01 05:14:22 -03:00
RogueException
d9b5cd6c98
Merge pull request #167 from DigiTechs/audio
...
Finish SocketVoiceChannel.ConnectAsync
2016-08-01 03:46:58 -03:00
RogueException
f0a9f7cbbb
Merge pull request #169 from RogueException/issues/168
...
Support GET /channels/{id}/pins
2016-08-01 03:45:25 -03:00
Christopher F
5049e573b3
Support GET /channels/{id}/pins
...
This commit adds GET /channels/{id}/pins to the ApiClient, and adds GetPinnedMessagesAsync to IMessageChannel. This method is only implemented on the REST entities, and the WebSocket entities do not include an override to retrieve pinned messages from cache.
2016-07-31 22:06:23 -04:00
Finite Reality
c3dc8cd15a
Use async methods and feed exceptions to promise
2016-07-31 18:53:04 +01:00
Finite Reality
1d5ae33e0e
Rename promise to make more sense
2016-07-31 15:16:35 +01:00
Finite Reality
7159600d7d
Finish SocketVoiceChannel.ConnectAsync
2016-07-31 15:09:27 +01:00
Christopher F
9afe2839f1
Merge pull request #165 from RogueException/issues/159
...
SocketSelfUser inherits ISelfUser
2016-07-30 23:03:01 -04:00
Christopher F
fca0099bc2
SocketSelfUser inherits ISelfUser
...
Resolves #159 .
The previous bug was that SocketSelfUser did not inherit from ISelfUser, so DiscordSocketClient.GetCurrentUserAsync was not returning a SocketSelfUser, despite the underlying type being that. This caused ModifyStatusAsync to throw the NotSupportedException that existed on the REST SelfUser.
2016-07-30 23:01:56 -04:00
RogueException
75b864bfe7
Merge pull request #164 from RogueException/issues/160
...
Don't load modules that are already loaded
2016-07-30 23:18:58 -03:00