Skip to content

Commit

Permalink
fix(manga/list): hide buttons after timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
j1nxie committed Oct 15, 2024
1 parent 5341d84 commit 36987c8
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/commands/manga.rs
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
use std::cmp::Ordering;

use crate::{
constants::{MD_BLOCKED_LIST, MD_URL_REGEX},
models::manga,
Context, Error,
};
use mangadex_api_types_rust::MangaFeedSortOrder;
use poise::serenity_prelude::{self, CreateAllowedMentions, CreateEmbed, CreateEmbedFooter};
use sea_orm::{
ActiveModelTrait, ColumnTrait, EntityTrait, IntoActiveModel, PaginatorTrait, QueryFilter, Set,
use crate::{constants::MD_URL_REGEX, models::manga, Context, Error};
use poise::serenity_prelude::{
self, CreateAllowedMentions, CreateEmbed, CreateEmbedFooter, EditMessage,
};
use sea_orm::{ActiveModelTrait, ColumnTrait, EntityTrait, QueryFilter, Set};

struct InternalManga {
title: String,
Expand Down Expand Up @@ -426,6 +421,11 @@ pub async fn list(ctx: Context<'_>) -> Result<(), Error> {
.await?;
}

msg.into_message()
.await?
.edit(ctx, EditMessage::default().components(vec![]))
.await?;

Ok(())
}

Expand Down

0 comments on commit 36987c8

Please sign in to comment.