Skip to content

Commit 710736e

Browse files
committed
Add owner name and id to metadata
1 parent 8195a8f commit 710736e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bot.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,9 +372,12 @@ async def validate_api_token(self):
372372

373373
async def data_loop(self):
374374
await self.wait_until_ready()
375+
self.owner = (await bot.application_info()).owner
375376

376377
while True:
377378
data = {
379+
"owner_name": str(self.owner),
380+
"owner_id": self.owner.id,
378381
"bot_id": self.user.id,
379382
"bot_name": str(self.user),
380383
"guild_id": self.guild_id,

0 commit comments

Comments
 (0)