Prelude/Main: rework hook system

This commit is contained in:
Natsu Kagami 2020-09-07 19:41:59 -04:00
parent b819509244
commit 238e44a64c
Signed by: nki
GPG key ID: 73376E117CD20735
5 changed files with 96 additions and 47 deletions

View file

@ -49,7 +49,7 @@ impl TypeMapKey for OsuClient {
/// - Commands on the "osu" prefix
/// - Hooks. Hooks are completely opt-in.
///
pub async fn setup(
pub fn setup(
path: &std::path::Path,
data: &mut TypeMap,
announcers: &mut AnnouncerHandler,