Skip to content

Commit 171eea2

Browse files
committed
fix(discord): use message edit instead of changing interaction message
1 parent c90879f commit 171eea2

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/discord/actions/paginator.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ pub async fn create_paged_server_view(
469469
let mut components = build_manage_server_action_row(false, history);
470470
components.extend(create_action_row(current_page, total_pages, false));
471471

472-
let mut response = EditInteractionResponse::new()
472+
let mut response = EditMessage::new()
473473
.embed(current_embed)
474474
.components(components);
475475

@@ -478,11 +478,11 @@ pub async fn create_paged_server_view(
478478
EditAttachments::new().add(attachment)
479479
);
480480
} else {
481-
response = response.clear_attachments();
481+
response = response.attachments(EditAttachments::new());
482482
}
483483

484-
interaction.edit_response(
485-
&ctx.serenity_context(),
484+
message.edit(
485+
&ctx,
486486
response
487487
).await?;
488488
}

0 commit comments

Comments
 (0)