#Presence wont change?
1 messages · Page 1 of 1 (latest)
so
@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?
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.
can u help to fix this piece
i already did
@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?
also maybe dont change presence in on_ready
like this???
no
disnake.Game is a class, you construct it with 1 string parameter
and pass it to activity kwarg
bro
???
what on_ready
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.
an event
@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
yeah, now maybe move activity and status parameters to commands.*Bot constructor (commands.Bot(..., activity=..., status=...), fill ... with proper values)
@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?
can you stop using chatgpt to fix code
re-read message then
no
ok
ok
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
)
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.
@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
It makes no difference if you have presences intent or not
you still can change presence without any intent
why woulndt it go
is smth wrong with my shit
No idea
wtf then
¯_(ツ)_/¯
fuck man
Try this
Then come back with what you tried while attempting to do it
Sounds like a plan