Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
Twilight
Builds software that powers the biggest Discord bots
Collective -
Host: opensource -
https://opencollective.com/twilight
- Website: https://twilight.rs
- Code: https://github.com/twilight-rs/twilight
Add methods on `MessageType` to determine whether the message can be
deleted, as some messages ...
Make the `GuildIntegration::kind` field be a new enum,
`GuildIntegrationType`, instead of a pla...
Unifies the awkward `GatewayEventDeserializerOwned` into
`GatewayEventDeserializer` by using a ...
Instead of shards transparently reconnecting they should send out a
close message and only reco...
Expands the docs around concurrency and parallelism when running
multiple shards and rewrites t...
The AFK timeout of a guild has been represented as an integer, despite
the fact that the AFK ti...
* flattens the `allowed_mentions` module into `message`
* removes `AllowedMentionsBuilder` (can...
Continued from #1487.
Closes #1466.
Co-authored-by: ITOH <[email protected]>
Co-authored-by: Vil...
github.com/twilight-rs/twilight - 5ec9803ee6d02c4f8f40254d86b975505758b55d authored almost 2 years ago by Cassandra McCarthy <[email protected]>
Add support for forum channel sort orders. This involves a new enum
called `ForumSortOrder` wit...
Update the `VoiceState::suppress` field with clarified information.
API docs PR: https://gith...
github.com/twilight-rs/twilight - 6e26844f010f9c3ffc4af46b84854a2f29a04649 authored almost 2 years ago by Zeyla <[email protected]>
Add the `DeveloperSupportServer` variant to `GuildFeature`, which maps
to the value "DEVELOPER_...
Add the `NitroBasic` variant to the `PremiumType` enum.
API docs PR: https://github.com/disco...
github.com/twilight-rs/twilight - 64655be7196598d31e14b20e8151d69ddfba96bc authored almost 2 years ago by Zeyla <[email protected]>
The tests used for Role Tags weren't sets of role tags one would find in
the real world. In par...
Abstract the `RoleTags::premium_subscriber` null boolean visitor to the
visitor module. Work is...
Co-authored-by: Zeyla <[email protected]>
github.com/twilight-rs/twilight - 17de51cbd27409b95a495420e383322bbc2df814 authored almost 2 years ago by Erk <[email protected]>
The `Message` enum is the subset of the WebSocket message types relevant
to end users of the Di...
Update the `rust-toolchain` versions in use. `rust-toolchain` recommends
using tags matching th...
Extend `ProcessErrorType::Deserializing` and
`ReceiveMessageErrorType::Deserializing` to includ...
Add support for forum channel layouts. This is a new enum with three
representations: "Not Set"...
Support age-restricted commands via the new `nsfw` field on commands,
which is an optional bool...
Remove the cache of server updates for a channel when leaving a voice channel.
When joining a c...
The volume in Lavalink models is specified as an i64, but the value is
truncated to a u16 when ...
Update the automod keyword rule limit documentation from 3 to 5.
Part of #2012.
github.com/twilight-rs/twilight - 0801e5e001d96403c6eb4cefc530288ea27b0132 authored almost 2 years ago by Zeyla <[email protected]>
Add `Bucket::new` to allow users to construct buckets, necessary for
implementing the `Ratelimi...
Removes the `Inflater` internal buffer and instead returns the
decompressed (and now `String`) ...
Rename the `CERTIFIED_MODERATOR` user flag to
`MODERATOR_PROGRAMS_ALUMNI`.
Closes #2008.
github.com/twilight-rs/twilight - 9f67808cb185d3b9d4175e76cb0e0137d768f3fb authored almost 2 years ago by Zeyla <[email protected]>
Add the ACTIVE_DEVELOPER user flag variant, described as "User is an
active developer."
Clos...
github.com/twilight-rs/twilight - 91399053e8b025c4ebff316db2ad8583084b63cf authored almost 2 years ago by Zeyla <[email protected]>
Make `Id<T>` invariant for `T`, which ensures that `Id<T>` will remain
`Send` and `Sync` regard...
Update the TLS section of the book's chapter on the gateway to state
there is no requirement on...
Update some outdated notes about gateway connection statuses, which was
left out of PR #1952.
Fix the list of required intents for a few examples.
github.com/twilight-rs/twilight - 2a4d84436973783d1f3ac0bd7fea041f64e51aac authored almost 2 years ago by vilgotf <[email protected]>
`Swatinem/rust-cache` v1 is unmaintained and v2 uses node.js 16 instead
of the deprecated node....
`#[track_caller]` is a no-op on async fns due to it being accidentally
stabilized, and nightly ...
github.com/twilight-rs/twilight - 0491ab38f9cef0852ff2b641211f795a6555a878 authored almost 2 years ago by Cassandra McCarthy <[email protected]>
github.com/twilight-rs/twilight - 537b2eb7c6ff69cac1cea564c879d75eb2b82483 authored about 2 years ago by Cassandra McCarthy <[email protected]>
This makes it a lot easier to get user information about the interaction
author. For instance, ...
As discussed in the Twilight Discord channel: https://discord.com/channels/745809834183753828/10...
github.com/twilight-rs/twilight - 50ca8c259d6e60518bf7e37e1a476e25956b7708 authored about 2 years ago by Vilgot Fredenberg <[email protected]>
Renames the `start_` functions in the `stream` module to `create_` to
better reflect the fact t...
Ratelimiter depends upon the received `heartbeat_interval` in Hello, so
it should be reset when...
An existing `heartbeat_interval` completed between reconnecting and
receiving a `Hello`, which ...
Instruments `Shard::next_message` with `shard{id=[number, total]}` to
give context to tracing e...
Fixes an issue where the shard would be disconnected, reconnect, send
`Resume`, and then immedi...
Upon receiving `OpCode::Heartbeat` shards should not try to deserialize
the sequence but respon...
Checks if a heartbeat has been sent and no heartbeat ack has been
received prior to calling `La...
This PR aims to clean up documentation leftovers from before #1947 and
contains also contains a...
`Latency::recent` slices the entire `recent` field (initialized as
`[Duration::ZERO; Self::RECE...
I encountered this panic during normal operation:
```
2022-10-21T15:29:41.171756Z DEBUG shard{...
github.com/twilight-rs/twilight - 1cd3115b85eba2a8e8d70b856ddf04514aa5f58b authored about 2 years ago by Vilgot Fredenberg <[email protected]>
Resharding is an often asked about feature, so I thought there should be
an official example. Th...
Establishing a websocket connection in `Shard::new` and
`Shard::with_config` causes issues when...
Only [Discord gateway events] are ratelimited, see
https://discord.com/developers/docs/topics/g...
Rewrites the command ratelimiter to follow the specification. Reserves
only one additional hear...
This PR moves the session identify queueing from `Shard::with_config()`
to `Shard::identify()`,...
Replaces the `TickHeartbeatFuture` future with tokio's `Interval` that
does the same thing.
...
github.com/twilight-rs/twilight - 506de9862aa45727fcd409553271aefc79cf16e3 authored about 2 years ago by Vilgot Fredenberg <[email protected]>This PR adds a lot of documentation to `ShardId` explaining its nuances.
github.com/twilight-rs/twilight - ed656db3575c2a63f194ded2bd29d6f9772d9446 authored about 2 years ago by Vilgot Fredenberg <[email protected]>Co-authored-by: Cassandra McCarthy <[email protected]>
github.com/twilight-rs/twilight - fdaf45a80fa879bcc7448ed0ccf521361ab2c478 authored about 2 years ago by Vilgot Fredenberg <[email protected]>
To spread out server load, Discord wants gateway users to randomize the
initial heartbeat event...
- Renames `OpCode::Event` to `OpCode::Dispatch`
- Replaces the `TryFrom<u8>` impl with a `from(...
- Clarifies `Latency::received`'s behaviour to no longer sound like
it'll always be `Some` af...
All dispatch events contains a sequence number the shard should record
for sending `Heartbeat` ...
The `resume_gateway_url` is recieved in `Ready` events, but should not
be re-used if reconnecti...
#1934 accidentally assumed that the heartbeat sequence is known when
heartbeating starts. `Shar...
Simplifies the `ConnectionStatus::from_close_frame` method and corrects
its documentation.
C...
github.com/twilight-rs/twilight - 5a0b521e83b6c14d9ae568fb455c7d109e72d1f6 authored about 2 years ago by Vilgot Fredenberg <[email protected]>
As the `WebSocketConfig` parameter is always provided, it's confusing to
pass it inside of an `...
Adds detection for failed or "zombied" connections and handles them by
closing the connection a...
The gateway refactor forgot about this important optimization. It's
reimplemented it as an addi...
github.com/twilight-rs/twilight - 4a102293a2be79762326629d707537926531c296 authored about 2 years ago by Vilgot Fredenberg <[email protected]>
Module does not exist.
github.com/twilight-rs/twilight - 58f7e2158be284a0390bde2649dff742e2807854 authored about 2 years ago by Vilgot Fredenberg <[email protected]>
Allows projects not using Discord's HTTP API to opt out of building
`twilight_http`. Can be usef...
`shard.status().[anything]` did not work previously as all
`ConnectionStatus` methods took owne...
Previously, if a shard within a stream encountered any error, not just a
failure, it would neve...
Refactor and restructure the `twilight-gateway` crate from the ground
up, providing a simpler im...
github.com/twilight-rs/twilight - 9442001b06d62ae5c4246cd47ba5b760640f9e2d authored about 2 years ago by Cassandra McCarthy <[email protected]>
github.com/twilight-rs/twilight - 950141698dd17a7ed157267a0b1ee386fc2a1690 authored about 2 years ago by Cassandra McCarthy <[email protected]>
github.com/twilight-rs/twilight - 425c82b57c067b557bc4451f0bb97e1ae54f8d94 authored about 2 years ago by Cassandra McCarthy <[email protected]>
github.com/twilight-rs/twilight - 52e02af1c2496137d333318ad204cd132ce077de authored about 2 years ago by Cassandra McCarthy <[email protected]>
github.com/twilight-rs/twilight - b8cd3cd6f4c969eed6fef5dd20a7eba809539e22 authored about 2 years ago by Cassandra McCarthy <[email protected]>
github.com/twilight-rs/twilight - c4cfe2c5ce81980ef5517c2654c7d7eae626c547 authored about 2 years ago by Cassandra McCarthy <[email protected]>
github.com/twilight-rs/twilight - ecdc4e71a0b637e74a0e487942e160a7eaa073e1 authored about 2 years ago by Cassandra McCarthy <[email protected]>
github.com/twilight-rs/twilight - 048b1353699ae3af4598bf4bbd71e3c72cb9518f authored about 2 years ago by Cassandra McCarthy <[email protected]>
github.com/twilight-rs/twilight - 6c3964b36a19e6c039572b9f17c8cdd89dc834d1 authored about 2 years ago by Cassandra McCarthy <[email protected]>
github.com/twilight-rs/twilight - 91f45197a1195a4b98719b0cd3036c6ce076e7b9 authored about 2 years ago by Cassandra McCarthy <[email protected]>
github.com/twilight-rs/twilight - bc2b1f745dc77c5e0d2b52471a34c30ac2e5390c authored about 2 years ago by Cassandra McCarthy <[email protected]>
github.com/twilight-rs/twilight - a0adb29a0b15d9a380fc8521f9cb39062fe4a0b8 authored about 2 years ago by Cassandra McCarthy <[email protected]>
github.com/twilight-rs/twilight - 6e50b3d59de89dedd89bd8b29c324457968b01c3 authored about 2 years ago by Cassandra McCarthy <[email protected]>
Allows users who don't need `ResponseFuture` (for `set_pre_flight`) to
just call `.await` on re...
These were deprecated since 0.9.
Co-authored-by: Vilgot Fredenberg <[email protected]...
github.com/twilight-rs/twilight - cbab9f57b06285a5e0be2064eb896a0a160aa409 authored about 2 years ago by AEnterprise <[email protected]>github.com/twilight-rs/twilight - 0245373b07c42270c3ef25fb98da63198ace2c9f authored about 2 years ago by Cassandra McCarthy <[email protected]>
Problem:
Specifying default manifest values[^1] is confusing as they're usually
only specified...
Remove unused `presences` parameter in the `GetGuildMembers` endpoint.
github.com/twilight-rs/twilight - d8c5375087a1102a80762b7543035fd3c1350957 authored about 2 years ago by laralove <[email protected]>
- Simplifies and fixes errors in `CommandOption` {de,}serialization by
delegating to the deri...
Discord has renamed a few channel types:
- `GuildNews` => `GuildAnnouncement`
- `GuildNewsThre...
Most incoming gateway events will be dispatch one's, so increasing the
size of `GatewayEvent` wi...
github.com/twilight-rs/twilight - b83453f126a4273c601632f516d5bd61b962e1c9 authored about 2 years ago by Cassandra McCarthy <[email protected]>
Bumps the MSRV from 1.60 to 1.64.
Utilizes the new `[workspace.package]` section to share commo...
github.com/twilight-rs/twilight - 3c43c44ed80a6e1ab72704155184e99e718f6557 authored about 2 years ago by Vilgot Fredenberg <[email protected]>
* move `embed`, `component`, `ReactionType` -> `message`
* move `channel::Reaction` -> `gateway:...
Documents all public items in the `voice` module. Removes
`CloseCodeConversionError` and the un...
Additionally the delete message days related functionality has been removed.
Closes #1883.
github.com/twilight-rs/twilight - 92107d1ff80b4d95ac17a5f7765c2d2f60900786 authored about 2 years ago by ITOH <[email protected]>
feat(http,validate): validate attachment descriptions
Also adds a function to validate attachme...