Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Statuses #2400

Closed
ThePiGuy24 opened this issue Oct 27, 2019 · 19 comments
Closed

Custom Statuses #2400

ThePiGuy24 opened this issue Oct 27, 2019 · 19 comments
Labels
discord bug This is a Discord bug, not one with the library.

Comments

@ThePiGuy24
Copy link

ThePiGuy24 commented Oct 27, 2019

The Problem

What I want is a way to set custom statuses as the feature has been added for users recently

The Ideal Solution

Ideal solution would be using something like client.change_presence(activity=discord.CustomStatus(status))

The Current Solution

None

Summary

Just add or suggest some way to set custom statuses without the "Playing ...", "Watching ... " or "Streaming ..."

@Rapptz
Copy link
Owner

Rapptz commented Oct 28, 2019

The fields in the presence payload that actually give the custom status text are ignored for bots.

Until the payload for it is finalized it's not going to be added. See here discord/discord-api-docs#1160 for tracking it on the Discord side.

@Rapptz Rapptz added the discord bug This is a Discord bug, not one with the library. label Oct 28, 2019
@ThePiGuy24 ThePiGuy24 changed the title Custon Statuses Custom Statuses Oct 28, 2019
@LordBoos
Copy link

discord/discord-api-docs#1160 was closed, can you check it and add the custom status to discord.py?

@Harmon758
Copy link
Contributor

Harmon758 commented Nov 21, 2019

Support for it should be coming soon.

Custom status support is literally in my stash
I just have to pop it and that's it

- Danny, yesterday

@MEXAHOTABOP
Copy link

https://discordapp.com/developers/docs/topics/gateway#activity-object-activity-types

4 | Custom | {emoji} {name} | ":smiley: I am cool"

this is it?

@Phxntxm
Copy link
Contributor

Phxntxm commented Dec 23, 2019

That is indeed what custom statuses are, if you were trying to inform others what it is though...I assure you Danny knows what custom statuses are, as the comment above yours showed he even has it ready in his stash.

@MEXAHOTABOP
Copy link

sorry i dont know who is danny

i just mention what this is appear in developer documentation but discordpy still not support this

@thecaralice
Copy link

sorry i dont know who is danny

i just mention what this is appear in developer documentation but discordpy still not support this

Danny (aka Rapptz) is the creator of this lib lol

@MEXAHOTABOP
Copy link

ok that makes sense

@Harmon758
Copy link
Contributor

This is likely delayed because:

custom status [. . .] is gonna change in early 2020 apparently

- Danny, last Wednesday

@Rapptz
Copy link
Owner

Rapptz commented Feb 3, 2020

Note that although this issue is closed, as of right now bots still cannot send a custom status. The developers mentioned that they were discussing whether bots should have it or not but there has been no update on that front.

@LordBoos
Copy link

LordBoos commented Feb 3, 2020

What do you mean exactly? That the bot itself cannot have custom status?
Because I use this new feature to load Custom statuses of Discord users on the same server as the bot is on and that works fine.

@thecaralice
Copy link

Only users can set custom statuses

@Rapptz
Copy link
Owner

Rapptz commented Feb 3, 2020

Reading is different from setting. Reading custom statuses works fine, I was referring to setting.

@madonuko
Copy link

madonuko commented Apr 17, 2020

Found this just now on discord developer portal. I think bots can do that now. (I know I'm a bit late)

Edit: no I was wrong, the enum is for checking activities of users, not setting activity for bots.

@s-jeelani
Copy link

s-jeelani commented Jun 20, 2020

I'm trying to set a custom status but its just not working and it doesn't even have an error. I tried https://discordpy.readthedocs.io/en/latest/api.htmlhighlight=client%20wait_for#discord.CustomActivity. But it just doesn't work. Does anyone know how to use a custom activity? (also i'm a bit late, sorry)

@Gobot1234
Copy link
Contributor

Please don't necro old issues,

Bots currently cannot set custom statuses, this is a discord limitation.

@XdekHckr
Copy link

i just wanted set custom status for my account client and not work lol

@SlyTheFloof
Copy link

@commands.Cog.listener() async def on_connect(self): await self.bot.change_presence( activity=discord.CustomActivity(name='Handling My Business!', emoji='<a:Tail_Wag:711971800157913088>'), status=discord.Status.dnd)
sad

@Al-as
Copy link

Al-as commented Jan 1, 2021

Using type 3 you can emulate a custom status, not entirely though.

bot.change_presence(activity=discord.Activity(name='56 users', type=3)) # Displays 'Watching 3 users'

yagomichalak pushed a commit to yagomichalak/discord.py that referenced this issue May 28, 2021
It's been long enough.

Fixes Rapptz#2400
DiEVeXx pushed a commit to DiEVeXx/discord.py that referenced this issue Oct 7, 2022
It's been long enough.

Fixes Rapptz#2400
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discord bug This is a Discord bug, not one with the library.
Projects
None yet
Development

No branches or pull requests