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:
parent
640690d9bf
commit
95fe62051b
19 changed files with 11 additions and 60 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue