composure 0.1.1

Discord bots over HTTP Interactions, no gateway: slash commands, components, modals and JSX-like views, on Cloudflare Workers (WASM) or any server
Documentation
//! Discord's data model, shared by Interactions, Responses and REST. Organized by resource;
//! everything is re-exported flat as `composure::types::X`.

use strum::AsRefStr;

mod allowed_mentions;
mod application;
mod attachment;
mod channel;
mod component;
mod embed;
mod emoji;
mod entitlement;
mod event;
mod guild;
mod integration;
mod interaction;
mod interaction_response;
mod invite;
mod lazy;
mod member;
mod message;
mod moderation;
mod permissions;
mod poll;
mod role;
mod snowflake;
mod sticker;
mod type_field;

pub use allowed_mentions::*;
pub use application::*;
pub use attachment::*;
pub use channel::*;
pub use component::*;
pub use embed::*;
pub use emoji::*;
pub use entitlement::*;
pub use event::*;
pub use guild::*;
pub use integration::*;
pub use interaction::*;
pub use interaction_response::*;
pub use invite::*;
pub use lazy::*;
pub use member::*;
pub use message::*;
pub use moderation::*;
pub use permissions::*;
pub use poll::*;
pub use role::*;
pub use snowflake::*;
pub use sticker::*;
pub use type_field::*;

/// [Image formats](https://discord.com/developers/docs/reference#image-formatting-image-formats) of CDN images
#[derive(Debug, AsRefStr, PartialEq, Eq)]
pub enum ImageFormat {
    /// `.png`
    Png,
    /// `.jpg`
    Jpeg,
    /// `.webp`
    Webp,
    /// `.gif`, for animated images
    Gif,
}