Skip to content Skip to sidebar Skip to footer

Discord.py Overwrite In Create_text_channel Permissions

overwrites = { guild.default_role: discord.PermissionOverwrite(read_messages=False), guild.me: discord.PermissionOverwrite(read_messages=True) } channel = await guild.crea

Solution 1:

You can use get_member to get the Member object:

overwrites = {
    guild.default_role: discord.PermissionOverwrite(read_messages=False),
    guild.me: discord.PermissionOverwrite(read_messages=True),
    guild.get_member(id): discord.PermissionOverwrite(read_messages=True),
}

Post a Comment for "Discord.py Overwrite In Create_text_channel Permissions"