Skip to content

Reducing IDE annoyances when setting IntentsΒ #1759

@DefiDebauchery

Description

@DefiDebauchery

Summary

Reworking Intents to remove readonly settings

What is the feature request for?

The core library

The Problem

When setting individual Intents, the preferred way is to directly set the class attribute:

intents = discord.Intents.default()
intents.members = True

Since Intents attributes are marked read-only, IDEs will complain. This can confuse new users, but it's also just slightly annoying in general.

The Ideal Solution

Unsure the most 'pythonic' way, but either Intents members should no longer read-only, or create setters (...or perhaps some update() method that allows passing in kwargs of the attributes)

The Current Solution

No response

Additional Context

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions