#Private Channel

1 messages · Page 1 of 1 (latest)

dense raven
#

-d disnake.Guild.create_channel

junior sapphireBOT
#

await create_text_channel(name, *, reason=None, category=None, position=..., topic=..., slowmode_delay=..., default_auto_archive_duration=..., nsfw=..., news=..., overwrites=...)```
This function is a [*coroutine*](https://docs.python.org/3/library/asyncio-task.html#coroutine).

Creates a [`TextChannel`](https://docs.disnake.dev/page/api.html#disnake.TextChannel "disnake.TextChannel") for the guild.

You need [`manage_channels`](https://docs.disnake.dev/page/api.html#disnake.Permissions.manage_channels "disnake.Permissions.manage_channels") permission to create the channel.

The `overwrites` parameter can be used to create a ‘secret’ channel upon creation. This parameter expects a [`dict`](https://docs.python.org/3/library/stdtypes.html#dict "(in Python v3.11)") of overwrites with the target (either a [`Member`](https://docs.disnake.dev/page/api.html#disnake.Member "disnake.Member") or a [`Role`](https://docs.disnake.dev/page/api.html#disnake.Role "disnake.Role")) as the key and a [`PermissionOverwrite`](https://docs.disnake.dev/page/api.html#disnake.PermissionOverwrite "disnake.PermissionOverwrite") as the value.

Note

Creating a channel of a specified position will not update the position of other channels to follow suit. A follow-up call to [`edit()`](https://docs.disnake.dev/page/api.html#disnake.TextChannel.edit "disnake.TextChannel.edit") will be required to update the position of the channel in the channel list...
dense raven
#

-d disnake.PermissionOverwrites

junior sapphireBOT
#

class disnake.PermissionOverwrite(**kwargs)```
A type that is used to represent a channel specific permission.

Unlike a regular [`Permissions`](https://docs.disnake.dev/page/api.html#disnake.Permissions "disnake.Permissions"), the default value of a permission is equivalent to `None` and not `False`. Setting a value to `False` is **explicitly** denying that permission, while setting a value to `True` is **explicitly** allowing that permission.

The values supported by this are the same as [`Permissions`](https://docs.disnake.dev/page/api.html#disnake.Permissions "disnake.Permissions") with the added possibility of it being set to `None`.

x == y Checks if two overwrites are equal.

x != y Checks if two overwrites are not equal.

iter(x) Returns an iterator of `(perm, value)` pairs. This allows it to be, for example, constructed as a dict or a list of pairs. Note that aliases are not shown.
dense raven
dense raven
# junior sapphire

The overwrites argument is a dict like py {memberObject: disnake.PermissionOverwrites(read_messages=True)}

#

-d Permissions

junior sapphireBOT
#

class disnake.Permissions(permissions=0, **kwargs)```
Wraps up the Discord permission value.

The properties provided are two way. You can set and retrieve individual bits using the properties as if they were regular bools. This allows you to edit permissions.

To construct an object you can pass keyword arguments denoting the permissions to enable or disable. Arguments are applied in order, which notably also means that supplying a flag and its alias will make whatever comes last overwrite the first one; as an example, `Permissions(external_emojis=True, use_external_emojis=False)` and `Permissions(use_external_emojis=True, external_emojis=False)` both result in the same permissions value (`0`).

Changed in version 1.3: You can now use keyword arguments to initialize [`Permissions`](https://docs.disnake.dev/page/api.html#disnake.Permissions "disnake.Permissions") similar to [`update()`](https://docs.disnake.dev/page/api.html#disnake.Permissions.update "disnake.Permissions.update").
dense raven
# junior sapphire

For more info about permission keys I would recommend to read this part of docs

wide flume
#

Or use Thread. Private threads are a base discord feature so everyone can use it.

tender shoreBOT
#
Solved!

Marked the thread as solved. If your question has not been answered, please open a new thread in #1019642966526140566.