From 48e43bf5fc3551ac12610d53c9f5f251a35f96fa Mon Sep 17 00:00:00 2001 From: Valentine Briese Date: Tue, 16 Apr 2024 21:15:53 -0700 Subject: [PATCH] Fuse Sophie's flesh with The Collective --- src/collective.rs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/collective.rs b/src/collective.rs index a29357d..4d6963a 100644 --- a/src/collective.rs +++ b/src/collective.rs @@ -1,16 +1,24 @@ use poise::serenity_prelude::{ - Attachment, ChannelId, CreateAttachment, CreateMessage, ExecuteWebhook, Mentionable, Webhook, + Attachment, ChannelId, CreateAttachment, CreateMessage, ExecuteWebhook, Mentionable, UserId, + Webhook, }; use crate::{utility::choose_str, Context, Error, FloofEmoji}; /// The Collective grows ever stronger... -#[poise::command(slash_command)] +#[poise::command(slash_command, ephemeral)] pub(super) async fn collective( ctx: Context<'_>, #[description = "Your contribution to The Collective"] message: String, #[description = "An additional offering to The Collective"] attachment: Option, ) -> Result<(), Error> { + if ctx.author().id == UserId::new(672258199566417930) { + ctx.say("Your flesh is a part of The Collective, but your mind was broken...") + .await?; + + return Ok(()); + } + ctx.defer_ephemeral().await?; let webhook = Webhook::from_url(ctx, &ctx.data().collective_webhook_url).await?;