简体   繁体   中英

discord.py get channel creator/author

Its possible to get the creator/author of a channel? Example code of what I want to achieve:

async def on_guild_channel_create(self, channel):
    await channel.edit(topic = f"The author of this channel is: {channel.author}")

I'm sorry but atm, there is no way to get the creator of a channel using discord py, but I heard people used audit logs to achieve something similar, so that might be something you could try.

Please check out this question

Discord.py How to get the list of all the audit logs?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM