From ead337f20341eabae5d496460c2a7cf8ca5c6520 Mon Sep 17 00:00:00 2001 From: Rick Martens Date: Mon, 29 Jul 2024 04:04:55 +0200 Subject: [PATCH] Try allow deprecated above deprecation declare --- twilight-model/src/http/interaction.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twilight-model/src/http/interaction.rs b/twilight-model/src/http/interaction.rs index a5f887e225..d86049c625 100644 --- a/twilight-model/src/http/interaction.rs +++ b/twilight-model/src/http/interaction.rs @@ -1,5 +1,4 @@ //! Models used when responding to interactions over HTTP. -#![allow(deprecated)] use super::attachment::Attachment; use crate::{ @@ -107,6 +106,7 @@ pub enum InteractionResponseType { /// Please send a [`InteractionResponseType::ChannelMessageWithSource`] /// with an [`Button`](crate::channel::message::component::Button) with the style [`ButtonStyle::Premium`](crate::channel::message::component::ButtonStyle) /// instead. + #[allow(deprecated)] #[deprecated(note = "This response type has been deprecated by Discord.")] PremiumRequired = 10, }