fixed del pager. todo stuff
This commit is contained in:
@ -174,7 +174,7 @@ INSERT IGNORE INTO roles (role, name, guild_id) VALUES (?, \"Role\", (SELECT id
|
||||
let _ = component
|
||||
.create_interaction_response(&ctx, move |r| {
|
||||
*r = resp;
|
||||
r
|
||||
r.kind(InteractionResponseType::UpdateMessage)
|
||||
})
|
||||
.await;
|
||||
}
|
||||
@ -195,7 +195,7 @@ INSERT IGNORE INTO roles (role, name, guild_id) VALUES (?, \"Role\", (SELECT id
|
||||
let _ = component
|
||||
.create_interaction_response(&ctx, move |r| {
|
||||
*r = resp;
|
||||
r
|
||||
r.kind(InteractionResponseType::UpdateMessage)
|
||||
})
|
||||
.await;
|
||||
}
|
||||
|
@ -186,8 +186,8 @@ impl Pager for DelPager {
|
||||
}
|
||||
|
||||
impl DelPager {
|
||||
pub fn new(timezone: Tz) -> Self {
|
||||
Self { page: 0, action: PageAction::First, timezone }
|
||||
pub fn new(page: usize, timezone: Tz) -> Self {
|
||||
Self { page, action: PageAction::Refresh, timezone }
|
||||
}
|
||||
|
||||
pub fn buttons(
|
||||
|
Reference in New Issue
Block a user