Add note about GatewayHandle: `store`

This commit is contained in:
bitfl0wer 2023-08-04 16:54:03 +02:00
parent 8f57150a79
commit c8abec7686
1 changed files with 4 additions and 0 deletions

View File

@ -152,6 +152,10 @@ impl GatewayMessage {
/// [`GatewayEvents`](GatewayEvent), which you can subscribe to. Gateway events include all currently
/// implemented types with the trait [`WebSocketEvent`]
/// Using this handle you can also send Gateway Events directly.
///
/// # Store
/// The value of `store`s [`HashMap`] is a [`tokio::sync::watch::channel<T: Updateable>`]. See the
/// [`Updateable`] trait for more information.
#[derive(Debug)]
pub struct GatewayHandle {
pub url: String,