Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
github.com/twilight-rs/twilight
Powerful, flexible, and scalable ecosystem of Rust libraries for the Discord API.
https://github.com/twilight-rs/twilight
Remove the dependency on `async_trait`. It doesn't do much here since
it's only one method, and...
Remove the old permission fields from `PermissionOverwrite`s and
`Role`s. It's not really neces...
Rework the `InMemoryCache` in a way similar to #422. Instead of having
the user work with 3 typ...
Signed-off-by: Cassandra McCarthy <[email protected]>
3ab7fbac4b4bdf916e152fb173cb2e6692cb5162 authored over 4 years ago by Cassandra McCarthy <[email protected]>
In the InMemoryCache, make all of the async functions non-async except
for the CacheUpdate impl...
Make the `oauth::team::MembershipState` enum (de)serialize as a repr
enum via `serde_repr` inst...
Add a method to the InMemoryCache, `voice_channel_states`, to get a list
of voice states within...
Refactor the usage of tracing macros to key data like it was designed to
and less like log macr...
The CI is throwing a warning that the
`intra_doc_link_resolution_failure` lint has been renamed...
Refactor update logic to be a bit cleaner and use fewer clones.
Signed-off-by: Vivian Hellyer...
91c148b816b06cd49a313c762419075090679211 authored over 4 years ago by Vivian <[email protected]>
Rework Cluster and Shard configuring to be a bit simpler and require
working with fewer types.
...
Add a list of guilds a user mutually shares with the bot, allowing for
stale user removal when ...
Fixes #411
0685ac859d864f684751e585548b5aa0f26a813b authored over 4 years ago by BlackHoleFox <[email protected]>Run clippy on tests in crates by using Clippy's `--tests` flag.
Closes #410.
Signed-off-by...
bddf0f482a7421d8bcd7f3c6925d9f04868671dc authored over 4 years ago by Vivian <[email protected]>
In some cases the gateway would panic because it would attempt
to get a event twice after there...
Fix all crates' clippy lints via `cargo clippy --tests`. The CI
currently does not catch lints ...
Add the server invite to the READMEs in the badges section.
Signed-off-by: Vivian Hellyer <vi...
0eecced0e23ea47af5cf1412ab5192b541c9bf7c authored over 4 years ago by Vivian <[email protected]>
Fix the names of the `ReactionRemove`, `ReactionRemoveAll`, and
`ReactionRemoveEmoji` variants ...
Use shifts to declare the values of constants to be consistent with
other bitflags. Add tests f...
Remove the `nsfw` and `parent_id` fields of `model::CategoryChannel`.
Category channels don't h...
Update the fields of the `guild::GuildIntegration` struct to match the
latest documentation.
...
494a37d0c6a8739c7ec787d0bd649bff09e7639a authored over 4 years ago by Vivian <[email protected]>* model/invite: add 'inviteguild' type
Add `invite::InviteGuild` which is used as part of a `...
3ac98c34a496f91be990f1f5d7b779c6ead00ef6 authored over 4 years ago by Vivian <[email protected]>
In Standby, instead of early returning once a message create or reaction
add has been processed...
Add the missing `nick` field to the
`twilight_model::guild::PartialMember` type.
Member docu...
823665a4567c2310e56596e32789e6fb89f713c9 authored over 4 years ago by Vivian <[email protected]>* project: make readme badges consistent
Make the badges consistent across all of the crate R...
e438c13d1f745aff9d4bde9e77b4fc35ba8b9db6 authored over 4 years ago by Vivian <[email protected]>Add support for cloudflare_zlib behind a `simd-zlib` feature.
This improves inflation perform...
38e16643b842f65024d1421fe4b8a8a591c4dbca authored over 4 years ago by Erk <[email protected]>
Fix the ratelimiter for sending events over the shard. The ratelimiter
uses tokio's interval, w...
When re-exporting `event::EventTypeFlags`, inline the documentation. The
`event` module is priv...
Rework `Standby::wait_for_event` and `Standby::wait_for_event_stream` to
match any event that's...
Handle API message errors. By the looks of it through testing, this can
only ever contain an "e...
Permissions in Permission Overwrites and Roles now have two fields in
the API: bitflags stored ...
Fix the includes in all Cargo.toml files to include all source files
(i.e. change `src/**/*.rs`...
Add guild IDs to a few model gateway payloads.
Signed-off-by: Valdemar Erk <[email protected]>
180b3404887a20318c3bc7ec33071153e862cf9f authored over 4 years ago by Erk <[email protected]>Setup an SSH deploy key for doc deployment to gh-pages.
Closes #343.
Signed-off-by: Vivian...
c3243e197c04c5f4cd1ea1b11e0b3e3387ea3759 authored over 4 years ago by Vivian <[email protected]>
Properly track the IDs of channels within a guild via the
`guild_channels` map. When a channel ...
Make much of the Cluster and Shard API synchronous. A lot of the
functionality, mainly surround...
Fixes #381
6e34199ef9c643ea91c829593d6c234e74254132 authored over 4 years ago by BlackHoleFox <[email protected]>
Add tracing to the custom deserialization impls of models. This will
step through the deseriali...
Add `joined_at` to the `gateway::payload::MemberUpdate` model.
Additionally, update members' jo...
Add `serde_test` unit tests for the following `guild` module types:
- Ban
- Emoji
- GuildPr...
Add `max_concurrency` to the session start limit struct, which indicates
how many shard session...
* gateway: refactor error handling
Refactor error handling in the gateway crate, including in...
bad47692bd39aaa587d139f47f351224261fe15f authored over 4 years ago by Vivian <[email protected]>
Refactor event emissions to be simpler, faster, reduce allocations, and
remove duplicate code.
...
Remove the imports for `tracing` crate macros. In some cases, these are
only needed when a feat...
Update the dependencies of all crates.
gateway:
- async-tungstenite: 0.7 -> 0.8
model:
...
Remove unused dependencies from crates.
cache/trait:
- twilight-model
lavalink:
- tw...
e7ab0659b21b731c2ed025f60467233412c8bbe5 authored over 4 years ago by Vivian <[email protected]>* project: revamp embed builder
The `twilight-builders` crate is a bit odd: it has no documen...
c29f07bc55ae489bc352b25a229617fdae39f928 authored over 4 years ago by Vivian <[email protected]>
In HTTP requests, provide the input in error variants, such as providing
the content the user g...
* model/event: make dispatch event an untagged enum
Add a `#[serde(untagged)]` attribute to
...
* project: standardise builders
Standardise the builders across the crate. The `builders` cra...
81d43da319e6984f933dcd1568681ee303298be1 authored over 4 years ago by Vivian <[email protected]>
Add "GIFT_CODE_UPDATE" to the variants in the `DispatchEvent`
deserialization implementation.
...
- Add Copy derive to MessageType
- Add TryFrom u8 for MessageType
Approved-by: Vivian Hellye...
22bf6d5f365f0bda6eb10c0470e6acf93f03af98 authored over 4 years ago by BlackHoleFox <[email protected]>
Implement `TryFrom<Event>` for `DispatchEvent`, `GatewayEvent`, and
`ShardEvent`.
* project: fix dead links
Fix all of the dead links using the `cargo-deadlinks` crate, and fi...
22db09220a977d37de5f49366d4a59a01939d2d3 authored over 4 years ago by Vivian <[email protected]>* project: make log messages consistent
Make the logging messages included in traces consiste...
138c9a2f20e03d81eb3c29d1513b3694523b7e96 authored over 4 years ago by Vivian <[email protected]>
When sending a multipart request, use `payload_json` to pass parameters
such as embeds and cont...
Simplify some runtime spawns by ignoring the return value of a spawn
since they don't need to b...
Update requests to allow for nullable fields, that is fields that are
`Option<Option<T>>`. When...
In the `http` crate, remove comments by either removing them completely
(in one case, removing ...
Remove the imports for `metrics` crate macros. It's just simpler to
reference the crate instead...
Add the `banner` field to the JSON body. This field is nullable, and is
a 16:9 PNG or JPEG base...
Update the authors of all of the crates to "Twilight Contributors".
Approved-by: AEnterprise ...
04186b564b68c5ec22f651463dc2715c92344139 authored over 4 years ago by Vivian <[email protected]>
Consolidate connection capability by moving the function from a
`connect` module to a function ...
Instead of returning a voldemort `impl Stream` type from `Shard::events`
and `Shard::some_event...
In the `twilight-lavalink` crate's `model` module, expose the `incoming`
and `outgoing` modules...
Make the layout of the `twilight_gateway::queue` module consistent by
moving the `queue.rs` fil...
In the SocketForwarder, import `std::time::Duration` instead of
referencing it via its FQN.
...
45c73ea0a3fbe0a2ce1d7bbe3d5532db4bcb57f7 authored over 4 years ago by Vivian <[email protected]>
When `Shard::shutdown` is called, send a close message with a frame with
a normal close code. T...
On every iteration of the node connection loop a branch would run to
check if the user hadn't d...
In the `twilight_model::channel::ReactionType` model, remove a "hack" to
create a default boole...
Make the return type of `Cluster::down_resumable` consistent with the
parameter type taken by `...
Refactor `twilight-mention`'s channel ID code by using `Channel::id` and
`GuildChannel::id` to ...
Fix a grammatical typo in the `twilight-mention` README that left out a
word.
Approved-by: A...
26c572a6185d27b78a0dfb7c502ba15f100aa6e2 authored over 4 years ago by Vivian <[email protected]>
Add a test for the `ReactionType::Custom` variant's `animated` field
when it's missing. The fie...
Build matrix
package:
- gateway
- http
- twilight
features:
- native
- rustls...
Switch out the `gateway, `http`, and `lavalink` crates' default TLS
feature from being `native`...
Consolidate and re-order imports, combining multiple imports from the
same crate into one and n...
Fix the deserialization of the Reconnect variant by deserializing and
ignoring the rest of the ...
#331 revert had a bad merge where it switched some lines around.
Approved-by: Valdemar Erk <v...
ba9dae815f998e059842a44c9181617491035633 authored over 4 years ago by Cassandra McCarthy <[email protected]>`serde_json` is no longer optional.
http:
- enable `serde-impl` & `sway-number-parsing` feat...
This reverts commit 700dc923e6f3c04ca3bddc3acdd8fb4958ea3d82.
This was a bad commit that, due...
3647b3cbe15572fa52f824ff0266482cbb234841 authored over 4 years ago by Vivian <[email protected]>
Approved-by: Valdemar Erk <[email protected]>
Approved-by: Vivian Hellyer <[email protected]>
M...
Unify workflows and setup caches in the Actions workflows.
Approved-by: Valdemar Erk <valdema...
9ddd697c892b616c08921516aeaf0e7dbea1d3aa authored over 4 years ago by nickelc <[email protected]>
Fix the field name of the `twilight_model::voice::VoiceRegion` model's
incorrect `optional` fie...
In the gateway and http crates, remove the lint allows for the
`clippy::used_underscore_binding...
Implement `serde::Serialize` for the `DispatchEvent` and `GatewayEvent`
models. The `DispatchEv...
In the HTTP client, combine the `skip_ratelimiter` and `ratelimiter`
fields into one. This can ...
Instead of taking `Into<T>` where T is an owned value for all
values that aren't primitives in ...
Fix some documentation for the `twilight_lavalink::model::Play` model
due to me getting it mixe...
Fix GatewayEvent and DispatchEvent payloads with null data payloads.
The `Reconnect` and `Heart...
ea7eddb5472020ec4557d489b38ff17252830b12 authored over 4 years ago by nickelc <[email protected]>
Separate shard processor errors from the shard error.
Closes #297.
Approved-By: Valdemar E...
72f9e9f54d1a0685d58bc7a60f4c7a3f35835492 authored over 4 years ago by nickelc <[email protected]>* gateway, lavalink: fix doc links
* actions: check documentation links on rust nightly
Bu...
6f756c3dcf77b97713d0b8bdc7152e7cf464bbd8 authored over 4 years ago by nickelc <[email protected]>
Add features in the for switching between rustls and native in the
gateway, http, and lavalink ...
* Use tracing instead of log
Approved-by: Iris Hoffmeyer <[email protected]>
Approved-by...
The install workflow is currently broken, disabling it for now. https://github.com/actions-rs/in...
c1c294826e855f7cc045f4a17c38e137fab377e7 authored over 4 years ago by Iris Hoffmeyer <[email protected]>Enable the `sink` feature for the `futures-channel` crate.
Approved-by: Valdemar Erk <valdema...
4a97656172f1b0976f9c87ea70c9a09bc4851a89 authored over 4 years ago by nickelc <[email protected]>
Optimise the deserialisation of
`twilight_model::gateway::event::GatewayEvent` by scanning the ...
Add a few convenience methods to
`twilight_model::channel::{Channel, GuildChannel}`:
- `Chan...
4f615122c0e7d43f49867f30756652ed09fee2ed authored over 4 years ago by Vivian <[email protected]>
Remove guild subscriptions from the gateway since it has been
soft-deprecated-but-not-really in...