Fix lint warnings

This commit is contained in:
2025-08-12 23:01:55 -03:00
parent ed717ef94b
commit 0cdbe63c55
6 changed files with 23 additions and 27 deletions
-18
View File
@@ -39,24 +39,6 @@ impl<T> InteractionContext<T> {
Ok(())
}
pub async fn think(&self) -> Result<(), InteractionError> {
self.rt
.http
.interaction(self.rt.app.id)
.create_response(
self.event.id,
&self.event.token,
&InteractionResponse {
data: None,
kind: InteractionResponseType::DeferredChannelMessageWithSource,
},
)
.await
.map_err(|_| InteractionError::DeferringFailed)?;
Ok(())
}
pub fn original_message(&self) -> Option<OriginalMessage<T>> {
self.event.message.as_ref().map(|_| OriginalMessage {
interaction_id: self.event.id,