Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

[BUG] Command Syncing #557

Closed
3 tasks done
Wolfhound905 opened this issue Jul 9, 2022 · 1 comment · Fixed by #559
Closed
3 tasks done

[BUG] Command Syncing #557

Wolfhound905 opened this issue Jul 9, 2022 · 1 comment · Fixed by #559
Assignees
Labels
Bug::Library A bug in the library

Comments

@Wolfhound905
Copy link
Collaborator

NAFF Version

any

Describe the Bug

When using slash command options max and mins and you change just max_value or others the command does not sync

Expected Results

The command should sync with the new min_value

Minimal Reproducible Code

@naff.slash_command("int")
@naff.slash_option(
    "int",
    "test",
    naff.OptionTypes.INTEGER,
    min_value=0,
    max_value=15, # Just change this value and command wont sync
)
async def test(ctx, string):
    await ctx.send(string)
    return "test"

Traceback

No response

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 Information

No response

@Wolfhound905 Wolfhound905 added the Bug::Library A bug in the library label Jul 9, 2022
@LordOfPolls
Copy link
Member

The attribute needs adding to this dict https://github.com/NAFTeam/NAFF/blob/master/naff/models/naff/application_commands.py#L1013-L1021

Either you can add it or i'll add it tonight

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug::Library A bug in the library
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants