#Presence wont change?

1 messages · Page 1 of 1 (latest)

slate pewter
#

use disnake.Game if you want Playing XXX presence

snow vortex
#

@venady.event
async def on_ready():
print(f'Bot is ready and logged in as {venady.user}!')
await venady.change_presence(
activity=disnake.Activity(
type=disnake.Game,
name='Made By LowKey'
),
status=disnake.Status.idle
)

#

like that?

slate pewter
#

no

#

-d disnake.Game

solar ridgeBOT
#

class disnake.Game(name, *, platform=None, **kwargs)```
A slimmed down version of [`Activity`](https://docs.disnake.dev/en/latest/api/activities.html#disnake.Activity "disnake.Activity") that represents a Discord game.

This is typically displayed via **Playing** on the official Discord client.

x == y Checks if two games are equal.

x != y Checks if two games are not equal.

hash(x) Returns the game’s hash.

str(x) Returns the game’s name.
snow vortex
slate pewter
#

i already did

snow vortex
#

@venady.event
async def on_ready():
print(f'Bot is ready and logged in as {venady.user}!')
await venady.change_presence(
activity=disnake.Activity
(
type=disnake.ActivityType.playing,
name='Made By LowKey'
),
status=disnake.Status.idle
)

bot has the 3 intents checked on but still doesnt go idle?

slate pewter
#

also maybe dont change presence in on_ready

snow vortex
#

like this???

slate pewter
#

no

snow vortex
#

hoowwwwwww

#

please update the cod

#

code

slate pewter
#

disnake.Game is a class, you construct it with 1 string parameter

#

and pass it to activity kwarg

snow vortex
#

bro

slate pewter
#

???

snow vortex
#

what on_ready

old ivyBOT
#

Hey @snow vortex!

It looks like you're trying to paste code into this channel.

Discord has support for Markdown, which allows you to post code with full syntax highlighting. Please use these whenever you paste code, as this helps improve the legibility and makes it easier for us to help you.

To do this, use the following method:
```py
print('Hello, world!')
```

This will result in the following:

print('Hello, world!')```
You can **edit your original message** to correct your code block.
slate pewter
#

an event

snow vortex
#
@bot.event
async def on_ready():
    print(f'Bot is ready and logged in as {bot.user}!')

    activity = disnake.Game(name='Made By LowKey')    
activity
    await bot.change_presence(activity=activity, status=disnake.Status.idle)
#

like this

slate pewter
#

yeah, now maybe move activity and status parameters to commands.*Bot constructor (commands.Bot(..., activity=..., status=...), fill ... with proper values)

snow vortex
#
@bot.command()
async def set_presence(ctx):
    activity = disnake.Game(name='Made By LowKey')
    await bot.change_presence(activity=activity, status=disnake.Status.idle)
    await ctx.send("Presence updated to idle with activity 'Made By LowKey'!")```
#

like this?

slate pewter
#

can you stop using chatgpt to fix code

snow vortex
#

im asking u

#

i aint using chatgpt

#

can u provide a debugger?

slate pewter
#

re-read message then

slate pewter
snow vortex
#

ok

snow vortex
#

ill try

#

bro

#

u do it

#

idk

#

anymire

#

anymore

#

im a basic one

#

i had this one

#

@venady.event
async def on_ready():
await venady.change_presence(
activity=disnake.Activity(
type=disnake.ActivityType.playing,
name='Made By LowKey'
),
status=disnake.Status.idle
)

old ivyBOT
#

Hey @snow vortex!

It looks like you're trying to paste code into this channel.

Discord has support for Markdown, which allows you to post code with full syntax highlighting. Please use these whenever you paste code, as this helps improve the legibility and makes it easier for us to help you.

To do this, use the following method:
```py
print('Hello, world!')
```

This will result in the following:

print('Hello, world!')```
You can **edit your original message** to correct your code block.
snow vortex
#
@venady.event
async def on_ready():
    await venady.change_presence(
        activity=disnake.Activity(
            type=disnake.ActivityType.playing,
            name='Made By LowKey'
        ),
        status=disnake.Status.idle
    ) 
#

like this i had it

#

and it worked

#

@slate pewter

#

but now it doesnt anymor

#

@slate pewter

#

i had it first like this

#

but now it wont work anymire

slate pewter
#

It makes no difference if you have presences intent or not

#

you still can change presence without any intent

snow vortex
#

why woulndt it go

snow vortex
slate pewter
#

No idea

snow vortex
#

wtf then

slate pewter
#

¯_(ツ)_/¯

snow vortex
#

fuck man

maiden nexus
#

Then come back with what you tried while attempting to do it

snow vortex
#

nvm man

maiden nexus
#

Sounds like a plan

snow vortex
#

good donky

#

donkey

#

so go suck your dads dick