A sample app that loads the list of members from a Discord server and their roles.
Useful for integration with BotBasher.
- Rust
- Bash-like shell (optional, for passing the env vars, you can use other methods as well)
-
Clone repo.
-
Write settings.
cat <<'EOF' > .env export RUST_LOG="info,list_members=debug" export DISCORD_TOKEN="<token>" export DISCORD_SERVER_ID="<server id>" export OUTPUT="users.jsonlines" EOF
-
Load settings into current shell.
source .env -
Run the app.
cargo run --bin list-members
-
Inspect the users list and the execution log.
Please report issues you encounter with this sample app!