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

[Tickets] Modal creation min/max comparison error #213

Open
EternalllZM opened this issue Nov 8, 2024 · 0 comments
Open

[Tickets] Modal creation min/max comparison error #213

EternalllZM opened this issue Nov 8, 2024 · 0 comments

Comments

@EternalllZM
Copy link
Contributor

Describe the bug
Looks to be an issue with the comparison between the minimum character and maximum character value

Cog Version*
2.9.6

To Reproduce

  1. Create a modal for a panel
  2. Set minimum characters req to 10
  3. Set maximum characters req to 30

Expected behavior
Command should continue and set character requirements properly

Screenshots

[2024-11-08 13:58:29] [ERROR] red: Exception in command 'tickets addmodal'
Traceback (most recent call last):
  File "/home/red/redenv/lib/python3.11/site-packages/discord/ext/commands/core.py", line 235, in wrapped
    ret = await coro(*args, **kwargs)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/red/.local/share/Red-DiscordBot/data/zm/cogs/CogManager/cogs/tickets/commands/admin.py", line 419, in addmodal
    await self.create_or_edit_modal(ctx, panel_name, field_name)
  File "/home/red/.local/share/Red-DiscordBot/data/zm/cogs/CogManager/cogs/tickets/commands/admin.py", line 631, in create_or_edit_modal
    if max_length < minlength:
       ^^^^^^^^^^^^^^^^^^^^^^
TypeError: '<' not supported between instances of 'int' and 'str'

Additional context
I reported this via DMs a while ago but had no proof as it never produced an error in the console, now it finally has.

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