Skip to content

Paginator author check #2381

Description

@Lumabots

Summary

Paginator.init() got an unexpected keyword argument 'user'

Reproduction Steps

create a paginator, use the author_check function and edit the paginator

Minimal Reproducible Code

paginator = pages.Paginator(pages=pages, author_check=True, custom_view=View,  user=interaction.user​​ )​
await paginator.edit(interaction.message)

Expected Results

It should just work as in the doc user is an attribute of pages.Paginator so we should be able to edit it like this because if we can't, author_check is useless, no user will never be able to interact since the user is the bot himself

Actual Results

Paginator.init() got an unexpected keyword argument 'user'

Intents

all

System Information

  • Python v3.11.4-final
  • py-cord v2.5.None-final
  • aiohttp v3.9.3

Checklist

  • I have searched the open issues for duplicates.
  • I have shown the entire traceback, if possible.
  • I have removed my token from display, if visible.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions