nextcord / nextcord-ext-menus

A nextcord menu and pagination extension that makes working with reaction menus and button component menus a bit easier
https://menus.docs.nextcord.dev
MIT License
26 stars 9 forks source link

refactor: fix pyright issue with message.id #48

Closed DenverCoder1 closed 2 years ago

DenverCoder1 commented 2 years ago

Summary

Fixes pyright error

/home/runner/work/nextcord-ext-menus/nextcord-ext-menus/nextcord/ext/menus/menus.py
  /home/runner/work/nextcord-ext-menus/nextcord-ext-menus/nextcord/ext/menus/menus.py:506:47 - error: Cannot access member "id" for type "PartialInteractionMessage"
    Member "id" is unknown (reportGeneralTypeIssues)

Reaction Menus require a Message object which is asserted elsewhere in the code, so if self.message is a PartialInteractionMessage or None, we don't need to check the reactions.

Checklist