如何将通道权限更改为discord.py中的特定角色?
我有这个:
@commands.command()
async def change_perms(self, ctx, role):
ctx.channel.set_permissions(ctx.guild.role, send_messages=true)但这不起作用
发布于 2022-04-21 21:27:29
好像你做错了几件事。
使用TextChannel.set_permissions:
@commands.command()
async def change_perms(self, ctx):
await ctx.channel.set_permissions(ctx.guild.default_role,send_messages=False)(这可能有用:)
https://stackoverflow.com/questions/71961045
复制相似问题