Commit Graph

3228 Commits

Author SHA1 Message Date
Paulo
d41aeee4fe fix: Audit log UserId can be null (#1794) 2021-03-10 16:50:14 -03:00
Alex Gravely
d2518db9a8 fix: Update Webhook ChannelId from model change (#1791) 2021-03-10 16:22:00 -03:00
Paulo
51b7afe2a6 misc: Add remark regarding CustomStatus as the activity (#1774)
* Throw exception with CustomStatus

* Add remark instead of exception

* Change wording
2021-03-10 16:07:31 -03:00
NeKz
f794163ffa fix: NullReferenceException in pin/unpin audit logs (#1780) 2021-03-10 16:07:19 -03:00
NeKz
6ac5ea1cbb fix: Add ChannelType property to ChannelInfo audit log (#1786) 2021-03-10 14:50:48 -03:00
Antonio Zdravkov Nikolov
0fc713a897 fix: Private methods aren't added as commands (#1773)
Fix breaking change introduced by #1521
2021-02-09 21:04:32 -03:00
Yeba
73e5cc2fbc fix: Deadlock in DiscordShardedClient when Ready is never received (#1761)
* fixed a deadlock in DiscordShardedClient during a failed Identify due to InvalidSession

* fixed log

* Don't wait ready before releasing semaphore

Co-authored-by: Paulo <pnmanjos@hotmail.com>
2021-01-31 03:13:09 -03:00
Paulo
83e88f4fb9 meta: Bump version to 2.3.1-dev 2021-01-30 23:40:33 -03:00
Paulo
6bb54577ab meta: 2.3.0 2021-01-28 19:13:18 -03:00
Paulo
2095701665 fix: Missing MessageReference when sending files 2021-01-21 18:08:46 -03:00
quinchs
8b25c9bbfb feature: Add GuildUser IsPending property (#1731)
* Implemented Pending property

* Implemented changes
2020-12-23 12:47:54 -03:00
Paulo
225550dc5a feature: Add MessageFlags and AllowedMentions to message modify (#1724)
* feature: Add MessageFlags and AllowedMentions to Modify

* Change exception message
2020-12-23 12:47:20 -03:00
Paulo
c683b2901d feature: Add user public flags (#1722) 2020-12-23 12:46:42 -03:00
Paulo
6a62c4770c feature: Add role tags (#1721) 2020-12-23 12:46:27 -03:00
Paulo
5934c7949a misc: VoiceRegions and related changes (#1720) 2020-12-23 12:46:12 -03:00
Paulo
4a7f8fec93 fix: Move and fix internal AllowedMentions object (#1727) 2020-12-20 07:37:32 -03:00
Paulo
a4d32d366d fix: IMessage.Embeds docs remarks 2020-12-20 07:09:44 -03:00
Still Hsu
accd3510df docs: Add alternative documentation link 2020-12-20 18:46:58 +09:00
Fyers
dd2e524ff9 fix: Invite and InviteMetadata properties (#1639)
* fixes #1495

* keep obsolete properties and return types for compatibility

* missing properties for SocketInvite

* Restore xml docs and change obsolete message

Co-authored-by: Paulo <pnmanjos@hotmail.com>
2020-12-19 11:39:09 -03:00
Still Hsu
36de7b25f3 Temporarily disable StyleCops until all the fixes are impl'd 2020-12-17 13:15:19 +08:00
Still Hsu
a48e46de52 docs: Fix the missing "In This Article" section 2020-12-14 12:25:51 +08:00
Still Hsu
2cd1880228 docs: Add minor tweaks to DiscordSocketConfig docs strings 2020-12-14 12:18:58 +08:00
Still Hsu
e31cdc7586 docs: Fix MaxWaitBetweenGuildAvailablesBeforeReady docs string
Signed-off-by: Still Hsu <dev@stillu.cc>
2020-12-14 12:07:24 +08:00
Still Hsu
4988a0764d Update framework version for tests to Core 3.1 to comply with LTS 2020-12-14 12:00:53 +08:00
Still Hsu
e0f8737c35 Add initial StyleCops style enforcement 2020-12-14 12:00:53 +08:00
Still Hsu
8f8078e969 Update project link 2020-12-14 12:00:53 +08:00
Still Hsu
d761846638 Add updated libraries for LastModified
Signed-off-by: Still Hsu <5843208+Still34@users.noreply.github.com>
2020-12-14 12:00:52 +08:00
Still Hsu
28a6f97d62 Update Docfx.Plugins.LastModified to v1.2.4
Signed-off-by: Still Hsu <5843208+Still34@users.noreply.github.com>
2020-12-14 12:00:51 +08:00
Still Hsu
833ee42a1f Cleanup GatewayReconnectException docs 2020-12-14 11:59:33 +08:00
Still Hsu
13a41f8754 Mark null as a specific langword in summary 2020-12-14 11:59:32 +08:00
Still Hsu
62539f0391 Move bulk deletes remarks from <summary> to <remarks> 2020-12-14 11:59:32 +08:00
Still Hsu
9ea3291ef1 Resolve inheritdocs warning 2020-12-14 11:59:32 +08:00
Still Hsu
38f6186cd0 Add missing asset
Signed-off-by: Still Hsu <5843208+Still34@users.noreply.github.com>
2020-12-14 11:59:31 +08:00
Still Hsu
857ef77b41 Add new method of role ID copy
Signed-off-by: Still Hsu <5843208+Still34@users.noreply.github.com>
2020-12-14 11:59:31 +08:00
Daniel Baynton
47f571ef1c fix: SocketGuild.HasAllMembers is false if a user left a guild (#1683)
* Fix: HasAllMembers is false if a user left

* Fix: Correct boolean logic
2020-12-14 03:55:03 +00:00
vrachv
aacfea05ea feature: Add max bitrate value to SocketGuild
* Update SocketGuild.cs

* Fix returns value docs

Signed-off-by: Still Hsu <dev@stillu.cc>

Co-authored-by: Still Hsu <dev@stillu.cc>
2020-12-14 03:54:31 +00:00
Joel Liechti
e385c40fc7 docs: Update summary of SocketVoiceChannel.Users (#1714)
The inherited summary incorrectly stated that all users who _see_ the channel are returned when in reality only the ones _connected_ are.
2020-12-14 03:42:04 +00:00
Paulo
9d7cb39faa fix: Rollback Activities to Game (#1702) 2020-12-01 02:47:20 -03:00
Paulo
1e9b252e64 fix: Wrong author for SocketUserMessage.ReferencedMessage 2020-11-29 21:18:52 -03:00
Paulo
5ed01a30b6 fix: UserMentions throwing NullRef 2020-11-26 14:30:58 -03:00
Paulo
5213916903 fix: Possible NullReferenceException when receiving InvalidSession (#1695) 2020-11-25 14:27:26 -03:00
Paulo
e3850e1e8f feature: Add inline replies (#1659)
* Add inline replies

* Missed a few things

* Change xml docs, IUserMessage, and other changes

* Missed one when changing

* Fix referencedMessage author
2020-11-22 00:43:38 -03:00
Paulo
25d5d36772 feature: Send presence on Identify payload (#1688)
* Send presence on identify

* Change CurrentUser presence
2020-11-22 00:42:48 -03:00
Paulo
ec673e1863 feature: Implement gateway ratelimit (#1537)
* Implement gateway ratelimit

* Remove unused code

* Share WebSocketRequestQueue between clients

* Add global limit and a way to change gateway limits

* Refactoring variable to fit lib standards

* Update xml docs

* Update xml docs

* Move warning to remarks

* Remove specific RequestQueue for WebSocket and other changes

The only account limit is for identify that is dealt in a different way (exclusive semaphore), so websocket queues can be shared with REST and don't need to be shared between clients anymore.

Also added the ratelimit for presence updates.

* Add summary to IdentifySemaphoreName

* Fix spacing

* Add max_concurrency and other fixes

- Add session_start_limit to GetBotGatewayResponse
- Add GetBotGatewayAsync to IDiscordClient
- Add master/slave semaphores to enable concurrency
- Not store semaphore name as static
- Clone GatewayLimits when cloning the Config

* Add missing RequestQueue parameter and wrong nullable

* Add RequeueQueue paramater to Webhook

* Better xml documentation

* Remove GatewayLimits class and other changes

- Remove GatewayLimits
- Transfer a few properties to DiscordSocketConfig
- Remove unnecessary usings

* Remove unnecessary using and wording

* Remove more unnecessary usings

* Change named Semaphores to SemaphoreSlim

* Remove unused using

* Update branch

* Fix merge conflicts and update to new ratelimit

* Fixing merge, ignore limit for heartbeat, and dispose

* Missed one place and better xml docs.

* Wait identify before opening the connection

* Only request identify ticket when needed

* Move identify control to sharded client

* Better description for IdentifyMaxConcurrency

* Add lock to InvalidSession
2020-11-18 23:40:09 -03:00
Paulo
97e71cd5e5 fix: Revert PremiumSubscriptionCount type (#1686) 2020-11-18 14:52:00 -03:00
Paulo
ec212b175d feature: Add missing properties to Guild and deprecate GuildEmbed (#1573)
* Add missing properties to Guild, related methods, and deprecate GuildEmbed endpoints

- Add missing guild properties: `discovery_splash`, `widget_enabled`, `widget_channel_id`, `rules_channel_id`, `max_presences`, `max_presences`, `max_members`, `public_updates_channel_id`, `max_video_channel_users`, `approximate_member_count`, `approximate_presence_count`
- Update guild properties: `embed_enabled`, `embed_channel_id`
- Add `GetGuildDiscoverySplashUrl` to `CDN`
- Add classes related to the guild widget
- Add `withCounts` parameter to `GetGuild(s)Async`
- Make GuildEmbed related methods obsolete with a message redirecting to widget ones

* Change xml docs and PremiumSubscriptionCount type

* Changed some xml docs
2020-11-17 05:23:45 -03:00
Paulo
04389a4f3e fix: Emoji url encode (#1681) 2020-11-17 05:11:25 -03:00
Paulo
3a1001830b misc: Missing summary tag 2020-11-17 02:11:02 -03:00
Paulo
47ed806418 misc: Change ratelimit messages (#1678) 2020-11-15 13:20:08 -03:00
Paulo
be60d813f7 fix: Team is nullable, not optional (#1672) 2020-11-09 15:39:08 -03:00