aboutsummaryrefslogtreecommitdiff
path: root/src/ext/framework/create_command.rs
diff options
context:
space:
mode:
authorAustin Hellyer <[email protected]>2016-12-05 07:46:22 -0800
committerAustin Hellyer <[email protected]>2016-12-05 07:46:22 -0800
commitccb9d16e5dbe965e5a604e1cb402cd3bc7de0df5 (patch)
treeb7eed1952ae14f215074452c3e3d1bc081a89b0a /src/ext/framework/create_command.rs
parentAdd more Context docs+permission requirements (diff)
downloadserenity-ccb9d16e5dbe965e5a604e1cb402cd3bc7de0df5.tar.xz
serenity-ccb9d16e5dbe965e5a604e1cb402cd3bc7de0df5.zip
Add a ShareMap across contexts
The context now exposes, through the Client, a `data` field, which can be accessed safely across contexts. This allows for a custom "shared state" without the need for (ab)using lazy-static.rs. Refer to example 06 for an example on how to use shared data.
Diffstat (limited to 'src/ext/framework/create_command.rs')
0 files changed, 0 insertions, 0 deletions