{"repo":"serenity-rs/serenity","free":true,"listed":false,"github":"https://github.com/serenity-rs/serenity","clone":"git clone https://github.com/serenity-rs/serenity.git","description":"A Rust library for the Discord API.","language":"Rust","stars":5588,"topics":["discord-api","rust","discord","hacktoberfest"],"license":"ISC","category":"chat-messaging","readme_excerpt":"[![ci-badge][]][ci] [![docs-badge][]][docs] [![guild-badge][]][guild] [![crates.io version]][crates.io link] [![rust-version-badge]][rust-version-link] serenity ![serenity logo][logo] Serenity is a Rust library for the Discord API. View the [examples] on how to use serenity's API. To make a bot with slash commands or text commands, see the poise framework built on top of serenity. To send and receive data from voice channels, see the songbird library. Serenity supports bot login via the use of [ Client::builder ]. You may also check your tokens prior to login via the use of [ validate token ]. Once logged in, you may add handlers to your client to dispatch [ Event ]s, by implementing the handlers in a trait, such as [ EventHandler::message ]. This will cause your handler to be called when a [ Event::MessageCreate ] is received. Each handler is given a [ Context ], giving information about the event. See the [client's module-level documentation]. The [ Shard ] is transparently handled by the library, removing unnecessary complexity. Sharded connections are automatically handled for you. See the [gateway's documentation][gateway docs] for more information. A [ Cache ] is also provided for you. This will be updated automatically for you as data is received from the Discord API via events. When calling a method on a [ Context ], the cache will first be searched for relevant data to avoid unnecessary HTTP requests to the Discord API. For more information, see the [cache's module-l","default_branch":null,"files":null,"tree":[],"storefront":"/r/serenity-rs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/serenity-rs/serenity/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}