I want the bot to toggle just send messages permissions when the command is invoked. code:
@commands.command()
@commands.has_permissions(manage_channels=True)
async def lock(self,ctx):
await ctx.channel.set_permissions(ctx.guild.default_role, send_messages=False)
this works , it changes the send messages permissions to false for default role but it also effects the other permissions, it sets them to neutral(default). I don't want that, I want it to just toggle send messages and leave everything as it is.