Registry / other / twilight-model

twilight-model

JSON →
library0.17.1rscratesunverified

Discord API models for the Twilight ecosystem, providing types for Discord's API.

# Cargo.toml [dependencies] twilight-model = "0.17.1"
INSTALL
IMPORT
SIG · TWILIGHT-MODEL
T
twilight-model
otherrustv0.17.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Message
use twilight_model::channel::Message;

Creates a simple Discord message model.

use twilight_model::channel::Message; let msg = Message { id: 123456789.into(), content: "Hello, world!".to_string(), ..Default::default() }; println!("Message: {}", msg.content);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.17.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
twilight-model — cargo add twilight-model · libregistry