async def set_topic(self, topic):
        """Sets the topic for the topic channel"""
        self.topic = topic
        try:
            if self.topicchannel:
                await client.edit_channel(self.topicchannel, topic=topic)
        except Exception as e:
            logger.exception(e)
async def set_topic ( self , topic ) : self . topic = topic try : if self . topicchannel : await client . edit_channel ( self . topicchannel , topic = topic ) except Exception as e : logger . exception ( e )
Sets the topic for the topic channel