Skip to content

ui.SomethingSelect defaults to required=False despite it defaulting to required=True in the API #10339

@PetitPotiron

Description

@PetitPotiron

Summary

ui.ChannelSelect defaults to required=False despite it defaulting to required=True in the API.

Reproduction Steps

Look at the ui.ChannelSelect required argument and then look at the API docs.

This is an example.

Minimal Reproducible Code

Expected Results

required=True instead of required=False default arguments

Actual Results

required=False despite required=True API defaults

Intents

any

System Information

any

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

The API docs state that the required argument is ignored if not used in a modal, so changing such arguments doesn't make any problem for in-message selects.

ui.Select is the only component that respects the discord default values.
All the affected components are:

Is this a deliberate design choice? I thought discord.py sticked with the API defaults.

Metadata

Metadata

Assignees

No one assigned

    Labels

    unconfirmed bugA bug report that needs triaging

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions