chore: remove tag aliases

with tag names *and* aliases both being options, we reach the limit for
the discord API

Signed-off-by: seth <getchoo@tuta.io>
This commit is contained in:
TheKodeToad 2023-12-04 19:26:36 +00:00 committed by seth
parent 640690d9bf
commit 95fe62051b
No known key found for this signature in database
GPG key ID: D31BD0D494BBEE86
19 changed files with 11 additions and 60 deletions

View file

@ -11,7 +11,7 @@ include!(concat!(env!("OUT_DIR"), "/generated.rs"));
static TAGS: Lazy<Vec<Tag>> = Lazy::new(|| serde_json::from_str(env!("TAGS")).unwrap());
/// Send a tag
#[poise::command(slash_command)]
#[poise::command(slash_command, prefix_command)]
pub async fn tag(
ctx: Context<'_>,
#[description = "the copypasta you want to send"] name: TagChoice,
@ -31,6 +31,9 @@ pub async fn tag(
}
m.embed(|e| {
e.title(&frontmatter.title);
e.description(&tag.content);
if let Some(color) = &frontmatter.color {
let color = *consts::COLORS
.get(color.as_str())