Commit Graph

1761 Commits

Author SHA1 Message Date
RogueException
ac49f4b8b0 Rename RequirePermission -> RequirePermissionAttribute 2016-08-16 00:42:59 -03:00
RogueException
ae867451b5 Validate login state before sending REST requests or RPC msgs 2016-08-14 22:38:12 -03:00
RogueException
65505fbfc5 Cleaned up internal entity namespaces 2016-08-14 14:31:33 -03:00
RogueException
3977e8b415 Merge pull request #195 from RogueException/resolve
Expanded mention resolving options
2016-08-14 11:32:15 -03:00
RogueException
fc17aa3ea0 Remove guild check from Message.Resolve 2016-08-14 11:31:49 -03:00
RogueException
347f6b0196 Expanded mention resolving options 2016-08-14 11:02:22 -03:00
RogueException
30b19de6d3 Fixed README's Discord widget 2016-08-12 11:12:55 -03:00
RogueException
94d6acc00e Exposed reflection classes on commands, modules and parameters 2016-08-12 06:36:06 -03:00
RogueException
b63c666d19 Added Linux support 2016-08-11 20:22:40 -03:00
RogueException
b6d14805b6 Added .Net Core MyGet feed 2016-08-11 20:22:29 -03:00
RogueException
3f53472c51 Fixed Color.DebuggerDisplay 2016-08-11 19:41:30 -03:00
RogueException
414e04d76e Removed unused parameters 2016-08-10 03:34:43 -03:00
RogueException
80ed28ebfd Added more extension methods 2016-08-10 03:20:12 -03:00
RogueException
63d3b93975 Removed Discord.Commands.Attributes.Preconditions namespace 2016-08-09 23:44:10 -03:00
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