#Question about accessing user assets
1 messages · Page 1 of 1 (latest)
oh
i just tried out stuff and realized display_avatar seems to work
so shld I instead use default_avatar?
Display avatar also works
alr so its fine using that over default_avatar right?
like I mean does it not work at times or sm like that?
display_avatar should be an alias for avatar or default_avatar
avatar returns None tho
If no avatar
Oh wait
I read it wrong
Ignore what I said
But yea it is
lol it exactly is
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
yea I but get an error when I use just avatar
display_avatar.url
doesnt return any issues and does the expected thing
so ig i'll just stick with that
yeah thats what youre supposed to use so thats correct
alr thanks
@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?
nextcord.Colour(0)
=docs Color.default
Works too
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
could be either role or channel perms
yea its role perms
which permission(s) are you requiring
have u double checked the role perms and the channel perms
yea
ok wait
does viewing the server as a role without these perms
still be able to use the commands?
not rlly
what I mean is, i'm the owner of the server, but view the server as a role without these perms
are the people running the cmd have admin
so will I able to run the command then?
its just me mate
u're the server owner, so ofc u're able to bypass the permissions thing
or if u have admin
alr yea I get it
if u dont want specific admins to use the cmd, use has_role or has_any_role depending on how many roles u require
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
this how my code looks btw
i'm not able to trigger the error when I dont got the required perms
and idk why
you're not a server owner there right
nah
could you check if theres maybe smth wrong in the code?
i tried everything but this issue still persists..is there anything I can do?
I don't see anything wrong
exactly..i've been trying to figure this one out for a while now
alr entire shit was my fault..I had admin perms under a role that I didnt notice in that server
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
Yo
What do I use for creating Activities?
nextcord.ext.activities used to exist before didnt it?
As in status?
no
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
=docs activities
As in those activities where u can play
yea
I don't think that existed in nextcord
it did
i could maybe search up an old tutorial for that
as proof
but i'm not sure if i'll find one
Seems like it existed since like 2-3 years ago
It doesn't exist in nextcord anymore
alr
so there is no way I can implement that
Hey!
Thanks for watching todays video, I really hope you enjoyed and join my discorddd... also subscribeee :)
LINKS -
Join my Discord - https://discord.gg/twHW4UUJGq
Set Up VSC - https://www.youtube.com/watch?v=KpzkP...
Set Up PYTHON - https://youtu.be/h4fhdhNWDKk
Anyways Thanks if you read all of this and I hope you have...
found one lol