New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Channel To Category #1208
Comments
There is an example of this for a single role in the docs, I've taken the liberty of posting it below as well. To do it for all roles is a simple iteration over everyone_perms = discord.PermissionOverwrite(read_messages=False)
my_perms = discord.PermissionOverwrite(read_messages=True)
everyone = discord.ChannelPermissions(target=server.default_role, overwrite=everyone_perms)
mine = discord.ChannelPermissions(target=server.me, overwrite=my_perms)
await client.create_channel(server, 'secret', everyone, mine) |
Anyone? |
This place is for issues regarding the library. Questions like this one are easier to answer on the discord server. |
Now the thing is changed |
Doesn't change the fact that this isn't the place to look for this kind of help. |
The async (0.16.x) branch has no support for channel categories. In short: "No Way" |
Hello, you can find Categories with:
|
@jatinluthra14 You can set the target to any role or user. Those are just examples. |
While using discord.client.create_channel,
How can I add all roles to the new channel?
The text was updated successfully, but these errors were encountered: