Skip to content

Commit

Permalink
Uses better method for stuff.
Browse files Browse the repository at this point in the history
  • Loading branch information
JDJGInc authored May 7, 2024
1 parent b3f8b8d commit 0701c89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cogs/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ async def _data(self, interaction: discord.Interaction):

if user != interaction.user:

info = await self.bot.application_info()
info = self.bot.application
owner_id = info.team.owner_id if info.team else info.owner.id
owner = self.bot.get_user(owner_id)

Expand Down Expand Up @@ -207,7 +207,7 @@ async def source(self, interaction: discord.Interaction):
@app_commands.command(description="Gives the owner's discord information", name="owner")
async def _owner(self, interaction: discord.Interaction):

info = await self.bot.application_info()
info = self.bot.application
owner_id = info.team.owner_id if info.team else info.owner.id
owner = self.bot.get_user(owner_id)

Expand Down

1 comment on commit 0701c89

@JDJGInc
Copy link
Member Author

@JDJGInc JDJGInc commented on 0701c89 May 7, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should work.
It will not always be up to date

Please sign in to comment.