#member.banner.url
1 messages · Page 1 of 1 (latest)
I apply this slash command to myself, and as you can see I have a banner.
First of all: please, do not use any language except English in names of functions and variables. To set the name of slash command you can use parameter name in slash command decorator.
2: you can get user's banner only from user fetching
-d disnake.Client.fetch_user
await fetch_user(user_id, /)```
This function is a [*coroutine*](https://docs.python.org/3/library/asyncio-task.html#coroutine).
Retrieves a [`User`](https://docs.disnake.dev/en/latest/api/users.html#disnake.User "disnake.User") based on their ID. You do not have to share any guilds with the user to get this information, however many operations do require that you do.
Note
This method is an API call. If you have [`disnake.Intents.members`](https://docs.disnake.dev/en/latest/api/clients.html#disnake.Intents.members "disnake.Intents.members") and member cache enabled, consider [`get_user()`](https://docs.disnake.dev/en/latest/api/clients.html#disnake.Client.get_user "disnake.Client.get_user") instead.
-d disnake.User.banner
property banner```
Returns the user’s banner asset, if available.
New in version 2.0.
Note
This information is only available via [`Client.fetch_user()`](https://docs.disnake.dev/en/latest/api/clients.html#disnake.Client.fetch_user "disnake.Client.fetch_user").
Oh, also you can make questions in disnake RU. Link to us in #info
ty!
Banner is an disnake.Asset object if the banner exists else None