2024-05-16 12:29:29 发布
网友
我试图使它这样,如果一个频道被删除,它将在一个小时后重新制作。但当我使用此代码时:
async def on_guild_channel_delete(channel): guild = channel.guild await guild.create_text_channel(channel)
它返回:Object of type TextChannel is not JSON serializable
Object of type TextChannel is not JSON serializable
有没有办法解决这个问题
Get the channels name与str一起:
str
await guild.create_text_channel(str(channel))
Get the channels name与
str
一起:相关问题 更多 >
编程相关推荐