diff options
| author | Fuwn <[email protected]> | 2020-11-05 13:25:16 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2020-11-05 13:25:16 -0800 |
| commit | 9eb1675f3c6dc001ed8beaef9328472332123555 (patch) | |
| tree | 7482ac55d120b923d8cedb3a0bfd37815e323e15 | |
| parent | fix: mention parsing (diff) | |
| download | dep-core-next-port-0.6.tar.xz dep-core-next-port-0.6.zip | |
| -rw-r--r-- | src/core/utils.rs | 2 | ||||
| -rw-r--r-- | src/modules/commands/admins/config.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/utils.rs b/src/core/utils.rs index 88b6197..67aa58a 100644 --- a/src/core/utils.rs +++ b/src/core/utils.rs @@ -7,7 +7,7 @@ use serenity::model::guild::{Guild, Role, Member}; use serenity::model::id::*; use serenity::model::misc::Mentionable; use serenity::prelude::RwLock; -use serenity::framework::standard::CommandError; +// use serenity::framework::standard::CommandError; use std::collections::HashMap; use std::str::FromStr; use std::sync::Arc; diff --git a/src/modules/commands/admins/config.rs b/src/modules/commands/admins/config.rs index c3a0252..e3f0820 100644 --- a/src/modules/commands/admins/config.rs +++ b/src/modules/commands/admins/config.rs @@ -28,7 +28,7 @@ impl Command for ConfigRaw { fn execute(&self, _: &mut Context, message: &Message, _: Args) -> Result<(), CommandError> { if let Some(guild_id) = message.guild_id { let guild_data = db.get_guild(guild_id.0 as i64)?; - message.channel_id.say(format!("{:?}", guild_data))?; + message.channel_id.say(format!("```{:?}```", guild_data))?; } else { failed!(GUILDID_FAIL); } |