{"id":15650139,"url":"https://github.com/baptiste0928/twilight-interactions","last_synced_at":"2025-04-05T08:05:20.998Z","repository":{"id":40259930,"uuid":"403543950","full_name":"baptiste0928/twilight-interactions","owner":"baptiste0928","description":"Macros and utilities to work with Discord Interactions using twilight.","archived":false,"fork":false,"pushed_at":"2025-03-25T13:10:33.000Z","size":215,"stargazers_count":37,"open_issues_count":1,"forks_count":8,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T07:05:19.477Z","etag":null,"topics":["discord","rust","twilight-rs"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/baptiste0928.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-06T08:28:34.000Z","updated_at":"2025-03-25T13:06:56.000Z","dependencies_parsed_at":"2024-05-05T20:21:44.042Z","dependency_job_id":"78e69bf4-9422-4cab-8607-a9379c8b4780","html_url":"https://github.com/baptiste0928/twilight-interactions","commit_stats":{"total_commits":89,"total_committers":8,"mean_commits":11.125,"dds":0.101123595505618,"last_synced_commit":"8919e0881af006fa026b7d4fc8c3e04f41c34898"},"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baptiste0928%2Ftwilight-interactions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baptiste0928%2Ftwilight-interactions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baptiste0928%2Ftwilight-interactions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baptiste0928%2Ftwilight-interactions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/baptiste0928","download_url":"https://codeload.github.com/baptiste0928/twilight-interactions/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247305933,"owners_count":20917208,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["discord","rust","twilight-rs"],"created_at":"2024-10-03T12:33:36.229Z","updated_at":"2025-04-05T08:05:20.953Z","avatar_url":"https://github.com/baptiste0928.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Twilight interactions\n\n[![Crates.io](https://img.shields.io/crates/v/twilight-interactions)](https://crates.io/crates/twilight-interactions)\n[![dependency status](https://deps.rs/repo/github/baptiste0928/twilight-interactions/status.svg)](https://deps.rs/repo/github/baptiste0928/twilight-interactions)\n[![docs.rs](https://img.shields.io/docsrs/twilight-interactions)](https://docs.rs/twilight-interactions/)\n[![CI](https://github.com/baptiste0928/twilight-interactions/actions/workflows/ci.yaml/badge.svg?event=push)](https://github.com/baptiste0928/twilight-interactions/actions/workflows/ci.yaml)\n\n`twilight-interactions` is a set of macros and utilities to work with Discord Interactions using [`twilight`](https://github.com/twilight-rs/twilight).\n\n**Note:** This crate is not affiliated with the [`twilight`](https://github.com/twilight-rs/twilight) project.\n\n## Features\n- **Slash command parsing**: parse interaction data as typed structs using the `CommandModel` macro.\n- **Slash command creation**: create commands from your structs with the `CreateCommand` macro. Commands are configured using attributes.\n\n```rust\nuse twilight_interactions::command::{CommandModel, CreateCommand, ResolvedUser};\n\n#[derive(CommandModel, CreateCommand)]\n#[command(name = \"hello\", desc = \"Say hello to other members\")]\nstruct HelloCommand {\n    /// Message to send\n    message: String,\n    /// User to send the message to\n    user: Option\u003cResolvedUser\u003e\n}\n```\n\n## Installing\nTo install `twilight-interactions`, add the following to your `Cargo.toml`:\n\n```toml\n[dependencies]\ntwilight-interactions = \"0.16\"\n```\n\nThe crate's major version follows the version of the official twilight crates.\nThe current MSRV is `1.79`.\n\n## Documentation\n\nThe API documentation is available on docs.rs: [`twilight-interactions` documentation](https://docs.rs/twilight-interactions/).\n\nExamples are available in the [`examples`](https://github.com/baptiste0928/twilight-interactions/tree/main/examples) directory.\n\n## Contributing\nThere is no particular contribution guidelines, feel free to open a new PR to improve the code. If you want to introduce a new feature, please create an issue before.\n\n*Special thanks to [LeSeulArtichaut](https://github.com/LeSeulArtichaut) who worked the first on this project.*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaptiste0928%2Ftwilight-interactions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbaptiste0928%2Ftwilight-interactions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaptiste0928%2Ftwilight-interactions/lists"}