Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Undocumented MessageType code on poll result messages #1731

Open
4 tasks done
retr0-init opened this issue Aug 9, 2024 · 1 comment
Open
4 tasks done

[BUG] Undocumented MessageType code on poll result messages #1731

retr0-init opened this issue Aug 9, 2024 · 1 comment

Comments

@retr0-init
Copy link
Contributor

retr0-init commented Aug 9, 2024

Library Version

5.13.1

Describe the Bug

I was working on #1730
This yields another message:

Class `MessageType` received an invalid and unexpected value `46`, a new enum item will be created to represent this value. Please update interactions.py or report this issue on GitHub - https://github.com/interactions-py/interactions.py/issues

I think this is the poll_result message type. However, it is not shown on the official documentation on https://discord.com/developers/docs/resources/message#message-object-message-types

Re:

We usually don't add undocumented features.

Therefore, this is just to be kept in place and make changes as soon as there is an update on the official document.

Steps to Reproduce

  1. Create a poll and end it.
  2. Try to go through the message history with the minimal reproducible code with the fixes in feat: Add poll result embed type #1730 .

Expected Results

It will generate the following error:

Class `MessageType` received an invalid and unexpected value `46`, a new enum item will be created to represent this value. Please update interactions.py or report this issue on GitHub - https://github.com/interactions-py/interactions.py/issues

Minimal Reproducible Code

@interactions.slash_command(
    "test", description="test command", scopes=[DEV_GUILD] if DEV_GUILD else None
)
async def test_cmd(self, ctx: interactions.SlashContext):
    """Register as an extension command"""
    async for msg in ctx.channel.history(10):
        ...

Traceback

Class `MessageType` received an invalid and unexpected value `46`, a new enum item will be created to represent this value. Please update interactions.py or report this issue on GitHub - https://github.com/interactions-py/interactions.py/issues

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.
  • I have attempted to debug this myself, and I believe this issue is with the library

Additional Information

No response

@retr0-init
Copy link
Contributor Author

This was reported on discord/discord-api-docs#7011 (comment)
It's been 3 weeks but this has been forwarded to the related team. Hopefully this will get through soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant