Cargo Features

bevy-discord has no features set by default.

[dependencies]
bevy-discord = { version = "0.6.0-rc.1", features = ["full", "bot", "http", "bot_cache", "rich_presence", "rich_presence_local_testing", "docsrs"] }
full = bot, http, rich_presence
bot full? = http

Enables sync of tokio

Affects config::DiscordBotConfig, events::bot, bevy-discord::DiscordPluginGroup.bot_config, bevy-discord::config, bevy-discord::events, plugins::ChannelListener, bevy-discord::DiscordPluginGroup

http bot? full?

Enables serenity

serenity:

Enables HTTP, which enables bots to execute actions on Discord.

Affects res::DiscordHttpResource, bevy-discord::DiscordPluginGroup.token, bevy-discord::DiscordPluginGroup

bot_cache

Enables cache of serenity

serenity:

Enables the cache, which stores the data received from Discord gateway to provide access to complete guild data, channels, users and more without needing HTTP requests.

Affects events::bot.BCacheRead, events::bot.BShardsReady

rich_presence full?

Enables async-trait and discord-sdk

Affects config::DiscordRichPresenceConfig, events::rich_presence, bevy-discord::DiscordPluginGroup.rich_presence_config, res::DiscordRichPresenceRes, bevy-discord::config, bevy-discord::events, plugins::ChannelListener, bevy-discord::DiscordPluginGroup

rich_presence_local_testing

Enables local-testing of discord-sdk

discord-sdk:

Enables tests that require 2 running Discord applications (stable, canary, or PTB) with a logged in user, see https://discord.com/developers/docs/game-sdk/sdk-starter-guide#testing-locally-with-two-clients

docsrs

Don't use this feature anywhere other than cargo doc, examples and rustdoc

Affects bevy-discord::DiscordPluginGroup.token