Remora / Remora.Discord

A data-oriented C# Discord library, focused on high-performance concurrency and robust design.
GNU Lesser General Public License v3.0
246 stars 44 forks source link

[Bug]: Pagination does not respect source user #314

Closed VelvetToroyashi closed 10 months ago

VelvetToroyashi commented 10 months ago

Description

When using pagination, any user can update the page selection, regardless of specified user.

Steps to Reproduce

Create a set of pages, pass them to FeedbackService#SendPaginatedMessageAsync, and then let anyone push the buttons.

Expected Behavior

An ephemeral message is dispatched, or the interaction is acknowledged and ignored.

Current Behavior

The page erroneously updates when a user pushes the button.

Library / Runtime Information

This affects Remora.Discord.Interactivity 4.5.1 and prior.