Skip to content

Commit

Permalink
Allow /avatar to be used in user installs
Browse files Browse the repository at this point in the history
  • Loading branch information
LightSage committed Jul 8, 2024
1 parent 31c7d20 commit 363eed9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lightning/cogs/info/discord_meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
class DiscordMeta(LightningCog):
@hybrid_command(aliases=['avy'], usage='[member=<you>]')
@app_commands.describe(member="The person to look up the avatar for (defaults to you)")
@app_commands.allowed_installs(users=True, guilds=True)
@app_commands.allowed_contexts(guilds=True, dms=True, private_channels=True)
async def avatar(self, ctx: LightningContext, *,
member: Annotated[Union[discord.Member, discord.User],
GuildorNonGuildUser] = None) -> None:
Expand Down

0 comments on commit 363eed9

Please sign in to comment.