Skip to content

Extended user command #1047

@jb3

Description

@jb3

I'd like to propose some additions to !user.

Public flags

Discord have made the flags that a user has (e.g. staff, partner, hypesquad, etc.) available to bots through the public_flags parameter of a user object. We get this data since we now use discord.py 1.4.0a, see discord.PublicUserFlags.

In [7]: print(author.public_flags.partner)
True

Using this we can have emojis in the !user command which mimic the desktop client and show the icons for each flag.

Device status

We could represent what devices a user is currently online on using the web_status, desktop_status and mobile_status of the user object.

In [3]: print(author.web_status)
   ...: print(author.desktop_status)
   ...: print(author.mobile_status)
   ...: 
offline
online
online

If we do not want all devices I'd like to propose adding some indication of the status of a user in the !user command.

I'd be happy to implement these features.

Metadata

Metadata

Assignees

Labels

a: frontendRelated to output and formattinga: informationRelated to information commands: (doc, help, information, reddit, site, tags)s: WIPWork In Progress

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions