EmbedComponentPagination constructor

EmbedComponentPagination(
  1. IInteractions interactions,
  2. List<EmbedBuilder> embeds, {
  3. String firstLabel = '<<',
  4. String prevLabel = '<',
  5. String nextLabel = '>',
  6. String lastLabel = '>>',
  7. IEmoji? firstEmoji,
  8. IEmoji? prevEmoji,
  9. IEmoji? nextEmoji,
  10. IEmoji? lastEmoji,
  11. Duration? timeout,
  12. IUser? user,
})

Creates instance of EmbedComponentPagination

The *Label and *Emoji parameters control the emojis and labels used for the pagination buttons.

Implementation

EmbedComponentPagination(
  IInteractions interactions,
  this.embeds, {
  String firstLabel = '<<',
  String prevLabel = '<',
  String nextLabel = '>',
  String lastLabel = '>>',
  IEmoji? firstEmoji,
  IEmoji? prevEmoji,
  IEmoji? nextEmoji,
  IEmoji? lastEmoji,
  Duration? timeout,
  IUser? user,
}) : super(
        interactions,
        firstLabel: firstLabel,
        prevLabel: prevLabel,
        nextLabel: nextLabel,
        lastLabel: lastLabel,
        firstEmoji: firstEmoji,
        prevEmoji: prevEmoji,
        nextEmoji: nextEmoji,
        lastEmoji: lastEmoji,
        timeout: timeout,
        user: user,
      );