#Question about accessing user assets

1 messages · Page 1 of 1 (latest)

stray leaf
#

The reason why avatar is None is because the bot doesn't have an avatar

#

For that, you'd have to use default_avatar instead of avatar

#

=docs default_avatar

ember stream
#

i just tried out stuff and realized display_avatar seems to work

#

so shld I instead use default_avatar?

stray leaf
#

Display avatar also works

ember stream
#

alr so its fine using that over default_avatar right?

#

like I mean does it not work at times or sm like that?

main birch
#

display_avatar should be an alias for avatar or default_avatar

stray leaf
#

avatar returns None tho

#

If no avatar

#

Oh wait

#

I read it wrong

#

Ignore what I said

#

But yea it is

main birch
#

lol it exactly is

stray leaf
#

Yeah it uses default_avatar if avatar is none

#

Wait isn't default_avatar the same thing as display_avatar tho

#

As in the use case

ember stream
#

display_avatar.url

#

doesnt return any issues and does the expected thing

#

so ig i'll just stick with that

main birch
#

yeah thats what youre supposed to use so thats correct

ember stream
#

alr thanks

ember stream
#

@main birch apologies for the ping but is there a way to set embed colour as black?

#

like does Nextcord.colour have a value for black?

main birch
#

nextcord.Colour(0)

ember stream
#

ight

#

thanks

outer sable
#

=docs Color.default

round birchBOT
outer sable
#

Works too

ember stream
#

Hey

#

What decorator should I use to check if a user running a command has the required perms

#

@application_checks.has_permissions()

#

i used this but people without the required perms are also able to run the command

stray leaf
ember stream
stray leaf
#

which permission(s) are you requiring

ember stream
#

manage_roles

#

its just a cmd to assign a role to a user in the server

#

so yea

stray leaf
#

have u double checked the role perms and the channel perms

ember stream
#

yea

#

ok wait

#

does viewing the server as a role without these perms

#

still be able to use the commands?

stray leaf
#

not rlly

ember stream
#

what I mean is, i'm the owner of the server, but view the server as a role without these perms

stray leaf
#

are the people running the cmd have admin

ember stream
#

so will I able to run the command then?

ember stream
stray leaf
#

u're the server owner, so ofc u're able to bypass the permissions thing

#

or if u have admin

ember stream
#

alr yea I get it

stray leaf
#

if u dont want specific admins to use the cmd, use has_role or has_any_role depending on how many roles u require

ember stream
#

okk

#

thanks

ember stream
#

ok so I'm in a server which my bot is in, where I dont have admin perms...but I am still able to run a command that requires the member to have admin perms

ember stream
#

this how my code looks btw

#

i'm not able to trigger the error when I dont got the required perms

#

and idk why

stray leaf
ember stream
ember stream
ember stream
#

i tried everything but this issue still persists..is there anything I can do?

stray leaf
ember stream
#

exactly..i've been trying to figure this one out for a while now

ember stream
#

alr entire shit was my fault..I had admin perms under a role that I didnt notice in that server KEKW also the code where I dealt with the error, didnt require self as a parameter

#

so yea now everythings good

#

thanks for helping @stray leaf and sry for wasting your time

ember stream
#

Yo

#

What do I use for creating Activities?

#

nextcord.ext.activities used to exist before didnt it?

stray leaf
ember stream
#

like discord activities i mean

#

i used to have it working before using the nextcord.ext.activities which existed earlier

#

but now I cant find a way to do it

stray leaf
#

=docs activities

stray leaf
ember stream
stray leaf
#

I don't think that existed in nextcord

ember stream
#

it did

#

i could maybe search up an old tutorial for that

#

as proof

#

but i'm not sure if i'll find one

stray leaf
#

Seems like it existed since like 2-3 years ago

ember stream
#

wait lemme check it up

#

nvm I cant find any tutorials on that

stray leaf
#

It doesn't exist in nextcord anymore

ember stream
#

so there is no way I can implement that

stray leaf
#

Nope

#

You'd have to manually make it

ember stream
#

found one lol

ember stream
#

thanks