Skip to content

Commit a2efd28

Browse files
committed
interaction readability, expandability and refactor
1 parent cec161c commit a2efd28

9 files changed

Lines changed: 367 additions & 327 deletions

File tree

Cargo.lock

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ regex = "1.10.2"
2121
octocrab = "0.19.0"
2222
reqwest = "0.11.22"
2323
hex = "0.4.3"
24+
to-arraystring = "0.1.3"

src/commands/snippets.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ async fn autocomplete_snippet<'a>(
2626
};
2727

2828
futures::stream::iter(snippet_list).filter(move |name| {
29-
futures::future::ready(name.to_lowercase().contains(partial.to_lowercase()))
29+
futures::future::ready(name.to_lowercase().contains(&partial.to_lowercase()))
3030
})
3131
}
3232

src/commands/utils.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,7 @@ pub async fn embed(
124124
Ok(())
125125
}
126126

127-
/// Create an embed in the current channel.
128-
///
129-
///
127+
/// Edits an embed already sent by the embed command.
130128
#[allow(clippy::too_many_arguments)]
131129
#[poise::command(rename = "edit-embed", slash_command, guild_only)]
132130
pub async fn edit_embed(

src/events/code.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ use poise::serenity_prelude::{self as serenity, Colour, Context, CreateEmbed, Me
66

77
use crate::formatting::trim_indent;
88

9+
// A shade of purple.
910
const ACCENT_COLOUR: Colour = Colour::new(0x8957e5);
1011

1112
pub async fn message(ctx: &Context, message: &Message) {

src/events/issue.rs

Lines changed: 0 additions & 321 deletions
This file was deleted.

0 commit comments

Comments
 (0)