diff --git a/euphoxide-bot/src/command/bang.rs b/euphoxide-bot/src/command/bang.rs index ad94c4a..1d433f5 100644 --- a/euphoxide-bot/src/command/bang.rs +++ b/euphoxide-bot/src/command/bang.rs @@ -24,9 +24,9 @@ pub fn parse_prefix_initiated<'a>(text: &'a str, prefix: &str) -> Option<(&'a st } pub struct Global { - prefix: String, - name: String, - inner: C, + pub prefix: String, + pub name: String, + pub inner: C, } impl Global { @@ -69,9 +69,9 @@ where } pub struct General { - prefix: String, - name: String, - inner: C, + pub prefix: String, + pub name: String, + pub inner: C, } impl General { @@ -121,9 +121,9 @@ where } pub struct Specific { - prefix: String, - name: String, - inner: C, + pub prefix: String, + pub name: String, + pub inner: C, } impl Specific { diff --git a/euphoxide-bot/src/command/basic.rs b/euphoxide-bot/src/command/basic.rs index 9d91cf1..cf7a5e9 100644 --- a/euphoxide-bot/src/command/basic.rs +++ b/euphoxide-bot/src/command/basic.rs @@ -69,8 +69,8 @@ where } pub struct Prefixed { - prefix: String, - inner: C, + pub prefix: String, + pub inner: C, } impl Prefixed { @@ -122,7 +122,7 @@ where type Future = Fut; } -pub struct FromHandler(F); +pub struct FromHandler(pub F); impl FromHandler { pub fn new(f: F) -> Self {