Pycord-Development / pycord

Pycord is a modern, easy to use, feature-rich, and async ready API wrapper for Discord written in Python
https://docs.pycord.dev
MIT License
2.71k stars 459 forks source link

Add description attribute to ClientUser #2454

Open Lumabots opened 3 months ago

Lumabots commented 3 months ago

Summary

Description attribute to ClientUser

What is the feature request for?

The core library

The Problem

Edit the about me/description of the bot without having to go on the portal dev

The Ideal Solution

add an attribute description to the clientuser edit

The Current Solution

there is not

Additional Context

No response

NeloBlivion commented 3 months ago

This will be added, but not to ClientUser; bots do not have descriptions, they use the parent description from their Application. You may fetch the description through application_info, then we will implement the Edit Current Application endpoint separately. There will be a future PR that adds many missing routes that we haven't properly implemented. If you wish to try editing right now, here's an example of how you can go about it:

from discord.http import Route

r = Route("PATCH", "/applications/@me")
payload = {"description": "updated wooo"}
data = await bot.http.request(r, json=payload)

This route returns the updated application info.