Members don't seem to have a banner attribute? #7864
-
It could just be my implementation so I thought I'd ask here first before creating an issue or something. @commands.command(name="banner", aliases=['b'])
async def banner(self, ctx, *, user: discord.Member=None):
"""
Returns a user's Discord banner
if a user is mentioned, or self if not.
"""
if not user:
u = ctx.author
else:
u = user
userBannerUrl = u.banner.url
embed = discord.Embed(description=f"{u.mention}'s banner")
embed.set_image(url=f"{userBannerUrl}")
await ctx.send(embed=embed)
await asyncio.sleep(3.0)
await ctx.message.delete() The avatar equivalent works perfectly, but when calling Has anyone else run into this / found a workaround? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
You need to fetch it, cause discord limitation. |
Beta Was this translation helpful? Give feedback.
-
Fyi you could just use |
Beta Was this translation helpful? Give feedback.
You need to fetch it, cause discord limitation.