pycord icon indicating copy to clipboard operation
pycord copied to clipboard

Add description attribute to ClientUser

Open Lumabots opened this issue 1 year ago • 2 comments

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

Lumabots avatar May 15 '24 13:05 Lumabots

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.

NeloBlivion avatar May 15 '24 14:05 NeloBlivion