Commit Graph

61 Commits

Author SHA1 Message Date
Chris Johnston
f9963380a7 Proposed Solution for #674 Permissions Changes (#743)
* Initial commit of changes. Changed permissions from bitwise index to use bitwise flags instead. Modified relevant methods involved

* Revised enum value naming

* Added FlagsAttribute to ChannelPermission, GuildPermission

* Added comments per Joe4evr suggestion

* Added underlines to hex value digits for readability per Joe4evr suggestion

* updated names to better reflect actual permission names as per SubZero0 suggestion

* fix for 236775c2d8aca9481d6c51c674f5727f97adec04

* Replaced Math.Pow with left shift operator

* Cleaned up the formatting of ChannelPermission and GuildPermission enums to make it easier to read
2017-10-25 20:39:26 -04:00
Christopher F
506a6c96c9 Throw when attempting to add or remove a member's EveryoneRole (#781)
* Throw when attempting to add or remove a member's EveryoneRole

This resolves #780

* Removed braces
2017-08-17 02:59:58 -03:00
Christopher F
576a52cdc6 Restructure and replace emojis with a new emote system (#619) 2017-05-04 12:52:48 -03:00
RogueException
a306d83283 Added net45 TFM 2017-04-26 10:25:08 -03:00
Christopher F
431b7fbd9f Visual Studio C#7 suggestions 2017-04-23 15:23:06 -04:00
Christopher F
6000b15c4d C#7 TODOs 2017-04-23 15:13:31 -04:00
RogueException
e762dddfbb Added SnowflakeUtils 2017-04-19 14:50:33 -03:00
RogueException
8dfa0220c3 Prevent overlapping tags 2017-03-31 15:19:13 -03:00
RogueException
13d488f43b Added slow/deadlocked event handler detection 2017-03-31 00:35:20 -03:00
RogueException
bf0be82d15 Added IWebhookUser and MessageSource 2017-03-30 23:29:30 -03:00
RogueException
13b9b15cf0 Fixed DateTimeUtils on .Net Standard 1.1 2017-03-22 05:35:19 -03:00
RogueException
32cf7ba5e1 A few datetime fixes 2017-03-22 05:22:11 -03:00
RogueException
bc469cbb46 Process everyone permission overwrites before role 2017-03-18 11:33:38 -03:00
RogueException
5a6d6ee076 Fixed notempty precondition error message 2017-03-18 10:37:57 -03:00
RogueException
21959fe43c Fixed several permission issues 2017-03-18 10:36:37 -03:00
RogueException
cab41851ba Prevent duplicate GuildUnavailables 2017-03-13 22:14:30 -03:00
RogueException
1b0e47be42 Fixed SocketRole.CompareTo 2017-03-02 06:55:09 -04:00
Christopher F
5e1d84d918 Merge pull request #395 from LassieME/issue/359
Conflicts:
	src/Discord.Net.WebSocket/DiscordSocketClient.cs
2017-03-01 17:34:39 -05:00
Christopher F
66b7e0e7f0 Rename precondition to 'YoungerThanTwoWeeks' 2017-03-01 17:16:06 -05:00
Christopher F
4a18b321ea Change the minimum allowed message to 13d23h59m
Connection/API lag could cause messages right on the edge of 14 weeks to fail on Discord's end when they pass our checks.
2017-02-25 16:31:46 -05:00
Christopher F
607f478b9a Check that messages older than two weeks are not passed to bulk delete
This resolves #477
2017-02-23 17:39:10 -05:00
Sindre G. Langhus
ab60f63511 Changes HasValue in Cachable to constructor argument 2017-02-21 22:11:48 +09:00
RogueException
70e8cea6e2 Fixed order for permission resolving 2017-02-11 23:15:48 -04:00
Sindre Langhus
d8682a82b2 Change all signatures in the SocketClients to interfaces. 2017-02-03 15:04:54 +01:00
Sindre G. Langhus
2d67cf36ae Changed Id from a ulong to generic TId, as per discussion. 2017-02-02 13:52:38 +01:00
Christopher F
daf0ac9347 Added docstrings for Cacheable 2017-02-02 13:51:53 +01:00
Sindre G. Langhus
705d71875c Simplified PR, renamed Cached to Cacheable. 2017-02-02 13:51:53 +01:00
Sindre G. Langhus
959d49a26f renamed Cache to Cached, and refactored many events to use Cached 2017-02-02 13:51:35 +01:00
Sindre G. Langhus
05fcd5f076 First commit 2017-02-02 13:37:39 +01:00
RogueException
fe35400498 Cleanup 2017-01-24 11:42:28 -04:00
RogueException
e2934abe29 Made API models internal. Removed Discord.Net.API. 2017-01-01 23:28:42 -04:00
RogueException
8326d01f62 Isolated API definitions to their own library 2016-12-23 16:57:29 -04:00
RogueException
c102f52bfa Merge branch 'issue/379' into dev 2016-12-16 11:12:50 -04:00
RogueException
8f87b2cc71 Added support for .NET Standard 1.1 and 1.2 2016-12-16 05:52:46 -04:00
Christopher F
3fc043132b docstrings for modify params, minor bugfixes 2016-12-04 19:07:07 -05:00
RogueException
f56a1b653d Cleaned up Reactions PR 2016-11-27 00:55:01 -04:00
RogueException
b9eeac9105 Merge branch 'dev' into feature/reactions 2016-11-27 00:30:46 -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
853f8f2e6b Added prefixless TagHandling, added startIndex to resolve, fixed bugs. 2016-11-16 16:26:06 -04:00
RogueException
af6c3e10c3 Cleaned up EmbedBuilder 2016-11-14 20:16:24 -04:00
Christopher F
52f979ec8a Support sending rich embeds, add an Embed Builder 2016-11-13 00:35:46 -05:00
Christopher F
838d60e2c2 Add API model for Reaction, implement REST methods for reactions 2016-10-31 19:50:38 -04:00
RogueException
dfe654af3b PagedAsyncEnumerator's nextPage should return false if there are no more pages. 2016-10-17 16:12:02 -03:00
RogueException
635819b89f Reduced command module lifetime to a single command execution. Removed ModuleAttribute. 2016-10-10 20:27:16 -03:00
RogueException
c1effbc971 Merged PlatformHelper into ConcurrentHashset 2016-10-08 18:32:45 -03:00
RogueException
5c33e28757 Added missing ConfigureAwaits 2016-10-08 16:59:17 -03:00
RogueException
3576c48680 Added null check to AsyncEvent 2016-10-08 14:47:01 -03:00
RogueException
8f5b5347b4 Update REST models on modify 2016-10-08 14:33:51 -03:00