From 501ba27e1cd52741988113ef47ee0fad7d0a5799 Mon Sep 17 00:00:00 2001 From: Nathan Perry Date: Tue, 6 Aug 2024 16:32:35 -0400 Subject: fixup unknown command, document commands --- src/util/rest_vec.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/util/rest_vec.rs') diff --git a/src/util/rest_vec.rs b/src/util/rest_vec.rs index 82889cd..31b783b 100644 --- a/src/util/rest_vec.rs +++ b/src/util/rest_vec.rs @@ -1,15 +1,16 @@ +use std::error::Error; + use serenity::all::{ Context, Message, }; -use std::error::Error; /// Pop a whitespace-separated word from the front of the arguments. Supports quotes and quote /// escaping. /// /// Leading whitespace will be trimmed; trailing whitespace is not consumed. // From https://github.com/serenity-rs/poise/blob/current/src/prefix_argument/mod.rs -fn pop_string(args: &str) -> Result<(&str, String), poise::TooFewArguments> { +pub fn pop_string(args: &str) -> Result<(&str, String), poise::TooFewArguments> { // TODO: consider changing the behavior to parse quotes literally if they're in the middle // of the string: // - `"hello world"` => `hello world` -- cgit v1.3.1