# Chat_Channel

Source: https://swapcard.dev/organizer/content-api/graphql-event-api-schema/objects/chat-channel


const [open, setOpen] = useState(startOpen);
  return (
    <details {...(open ? { open: true } : {})} className="details" style={{ border:'none', boxShadow:'none', background:'var(--ifm-background-color)' }}>
      <summary
        onClick={(e) => {
          e.preventDefault();
          setOpen((open) => !open);
        }}
        style={{ listStyle:'none' }}
      >
      {open ? dataOpen : dataClose}
      </summary>
      {open && children}
    </details>
  );
};

No description

```graphql
type Chat_Channel {
  channelUserCount: Int!
  channelUsers(
    pagination: Chat_OffsetPaginationInput = [object Object]
  ): [Chat_ChannelUser!]!
  createdAt: Chat_DateTime!
  communityId: String
  description: String
  externalLinks: [Chat_ExternalLink!]!
  id: Chat_UUID!
  imageFile: Chat_File @deprecated
  imageFile_id: Chat_ObjectID @deprecated
  imageUrl: String
  isClosed: Boolean!
  type: Chat_ChannelType!
  isPrivate: Boolean! @deprecated
  messageCount(
    types: [Chat_MessageType]
  ): Int!
  messages(
    pagination: Chat_CursorPaginationInput! = [object Object]
    filters: [Chat_MessageFilterInput!]
    sort: [Chat_MessageSortInput!]
  ): [Chat_Message!]!
  name: String
  typingChannelUsers: [Chat_ChannelUser!]!
  updatedAt: Chat_DateTime!
  users(
    externalRessourceTypes: [Chat_ExternalRessourceType!]
    pagination: Chat_OffsetPaginationInput = [object Object]
  ): [Chat_User!]!
  right: Chat_StudioRight!
  enabledInteractions: [Chat_ChannelInteractionType!]! @deprecated
  interactionsOrder: [Chat_ChannelInteractionType!]! @deprecated
  interactionsConfig: [Chat_ChannelInteractionConfigUnion!]!
  translations: [Chat_ChannelTranslation!]!
}
```

### Fields

#### [<code style={{ fontWeight: 'normal' }}>Chat_Channel.<b>channelUserCount</b></code>](#)<Bullet />[`Int!`](/organizer/content-api/graphql-event-api-schema/scalars/int) <Badge class="badge badge--secondary" text="non-null"/> <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> How many people are within the channel
> 

#### [<code style={{ fontWeight: 'normal' }}>Chat_Channel.<b>channelUsers</b></code>](#)<Bullet />[`[Chat_ChannelUser!]!`](/organizer/content-api/graphql-event-api-schema/objects/chat-channel-user) <Badge class="badge badge--secondary" text="non-null"/> <Badge class="badge badge--secondary" text="object"/> 
> 
> 
> People within the channel
> ##### [<code style={{ fontWeight: 'normal' }}>Chat_Channel.channelUsers.<b>pagination</b></code>](#)<Bullet />[`Chat_OffsetPaginationInput`](/organizer/content-api/graphql-event-api-schema/inputs/chat-offset-pagination-input) <Badge class="badge badge--secondary" text="input"/> 
> 
> 
> 
> 

#### [<code style={{ fontWeight: 'normal' }}>Chat_Channel.<b>createdAt</b></code>](#)<Bullet />[`Chat_DateTime!`](/organizer/content-api/graphql-event-api-schema/scalars/chat-date-time) <Badge class="badge badge--secondary" text="non-null"/> <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> 
> 

#### [<code style={{ fontWeight: 'normal' }}>Chat_Channel.<b>communityId</b></code>](#)<Bullet />[`String`](/organizer/content-api/graphql-event-api-schema/scalars/string) <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> 
> 

#### [<code style={{ fontWeight: 'normal' }}>Chat_Channel.<b>description</b></code>](#)<Bullet />[`String`](/organizer/content-api/graphql-event-api-schema/scalars/string) <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> The channel text description
> 

#### [<code style={{ fontWeight: 'normal' }}>Chat_Channel.<b>externalLinks</b></code>](#)<Bullet />[`[Chat_ExternalLink!]!`](/organizer/content-api/graphql-event-api-schema/objects/chat-external-link) <Badge class="badge badge--secondary" text="non-null"/> <Badge class="badge badge--secondary" text="object"/> 
> 
> 
> 
> 

#### [<code style={{ fontWeight: 'normal' }}>Chat_Channel.<b>id</b></code>](#)<Bullet />[`Chat_UUID!`](/organizer/content-api/graphql-event-api-schema/scalars/chat-uuid) <Badge class="badge badge--secondary" text="non-null"/> <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> The channel unique id, should be stored by the caller if needed
> 

#### [<code style={{ fontWeight: 'normal' }}>Chat_Channel.<b>imageFile</b></code>](#)<Bullet />[`Chat_File`](/organizer/content-api/graphql-event-api-schema/objects/chat-file) <Badge class="badge badge--deprecated badge--secondary" text="deprecated"/> <Badge class="badge badge--secondary" text="object"/> 
> 
> 
> :::caution DEPRECATED
> Use imageUrl instead
> :::
> 
> 
> 

#### [<code style={{ fontWeight: 'normal' }}>Chat_Channel.<b>imageFile_id</b></code>](#)<Bullet />[`Chat_ObjectID`](/organizer/content-api/graphql-event-api-schema/scalars/chat-object-id) <Badge class="badge badge--deprecated badge--secondary" text="deprecated"/> <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> :::caution DEPRECATED
> Use imageUrl instead
> :::
> 
> 
> 

#### [<code style={{ fontWeight: 'normal' }}>Chat_Channel.<b>imageUrl</b></code>](#)<Bullet />[`String`](/organizer/content-api/graphql-event-api-schema/scalars/string) <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> 
> 

#### [<code style={{ fontWeight: 'normal' }}>Chat_Channel.<b>isClosed</b></code>](#)<Bullet />[`Boolean!`](/organizer/content-api/graphql-event-api-schema/scalars/boolean) <Badge class="badge badge--secondary" text="non-null"/> <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> 
> 

#### [<code style={{ fontWeight: 'normal' }}>Chat_Channel.<b>type</b></code>](#)<Bullet />[`Chat_ChannelType!`](/organizer/content-api/graphql-event-api-schema/enums/chat-channel-type) <Badge class="badge badge--secondary" text="non-null"/> <Badge class="badge badge--secondary" text="enum"/> 
> 
> 
> 
> 

#### [<code style={{ fontWeight: 'normal' }}>Chat_Channel.<b>isPrivate</b></code>](#)<Bullet />[`Boolean!`](/organizer/content-api/graphql-event-api-schema/scalars/boolean) <Badge class="badge badge--deprecated badge--secondary" text="deprecated"/> <Badge class="badge badge--secondary" text="non-null"/> <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> :::caution DEPRECATED
> Use permissions/options instead
> :::
> 
> Whether or not the channel is publicly listable
> 

#### [<code style={{ fontWeight: 'normal' }}>Chat_Channel.<b>messageCount</b></code>](#)<Bullet />[`Int!`](/organizer/content-api/graphql-event-api-schema/scalars/int) <Badge class="badge badge--secondary" text="non-null"/> <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> Message count within this channel
> ##### [<code style={{ fontWeight: 'normal' }}>Chat_Channel.messageCount.<b>types</b></code>](#)<Bullet />[`[Chat_MessageType]`](/organizer/content-api/graphql-event-api-schema/enums/chat-message-type) <Badge class="badge badge--secondary" text="list"/> <Badge class="badge badge--secondary" text="enum"/> 
> 
> 
> 
> 

#### [<code style={{ fontWeight: 'normal' }}>Chat_Channel.<b>messages</b></code>](#)<Bullet />[`[Chat_Message!]!`](/organizer/content-api/graphql-event-api-schema/objects/chat-message) <Badge class="badge badge--secondary" text="non-null"/> <Badge class="badge badge--secondary" text="object"/> 
> 
> 
> Messages within this channel
> ##### [<code style={{ fontWeight: 'normal' }}>Chat_Channel.messages.<b>pagination</b></code>](#)<Bullet />[`Chat_CursorPaginationInput!`](/organizer/content-api/graphql-event-api-schema/inputs/chat-cursor-pagination-input) <Badge class="badge badge--secondary" text="non-null"/> <Badge class="badge badge--secondary" text="input"/> 
> 
> 
> 
> 

##### [<code style={{ fontWeight: 'normal' }}>Chat_Channel.messages.<b>filters</b></code>](#)<Bullet />[`[Chat_MessageFilterInput!]`](/organizer/content-api/graphql-event-api-schema/inputs/chat-message-filter-input) <Badge class="badge badge--secondary" text="list"/> <Badge class="badge badge--secondary" text="input"/> 
> 
> 
> 
> 

##### [<code style={{ fontWeight: 'normal' }}>Chat_Channel.messages.<b>sort</b></code>](#)<Bullet />[`[Chat_MessageSortInput!]`](/organizer/content-api/graphql-event-api-schema/inputs/chat-message-sort-input) <Badge class="badge badge--secondary" text="list"/> <Badge class="badge badge--secondary" text="input"/> 
> 
> 
> 
> 

#### [<code style={{ fontWeight: 'normal' }}>Chat_Channel.<b>name</b></code>](#)<Bullet />[`String`](/organizer/content-api/graphql-event-api-schema/scalars/string) <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> The default channel name string
> 

#### [<code style={{ fontWeight: 'normal' }}>Chat_Channel.<b>typingChannelUsers</b></code>](#)<Bullet />[`[Chat_ChannelUser!]!`](/organizer/content-api/graphql-event-api-schema/objects/chat-channel-user) <Badge class="badge badge--secondary" text="non-null"/> <Badge class="badge badge--secondary" text="object"/> 
> 
> 
> People typings within the channel
> 

#### [<code style={{ fontWeight: 'normal' }}>Chat_Channel.<b>updatedAt</b></code>](#)<Bullet />[`Chat_DateTime!`](/organizer/content-api/graphql-event-api-schema/scalars/chat-date-time) <Badge class="badge badge--secondary" text="non-null"/> <Badge class="badge badge--secondary" text="scalar"/> 
> 
> 
> 
> 

#### [<code style={{ fontWeight: 'normal' }}>Chat_Channel.<b>users</b></code>](#)<Bullet />[`[Chat_User!]!`](/organizer/content-api/graphql-event-api-schema/objects/chat-user) <Badge class="badge badge--secondary" text="non-null"/> <Badge class="badge badge--secondary" text="object"/> 
> 
> 
> Shortcut to get directly users
> ##### [<code style={{ fontWeight: 'normal' }}>Chat_Channel.users.<b>externalRessourceTypes</b></code>](#)<Bullet />[`[Chat_ExternalRessourceType!]`](/organizer/content-api/graphql-event-api-schema/enums/chat-external-ressource-type) <Badge class="badge badge--secondary" text="list"/> <Badge class="badge badge--secondary" text="enum"/> 
> 
> 
> 
> 

##### [<code style={{ fontWeight: 'normal' }}>Chat_Channel.users.<b>pagination</b></code>](#)<Bullet />[`Chat_OffsetPaginationInput`](/organizer/content-api/graphql-event-api-schema/inputs/chat-offset-pagination-input) <Badge class="badge badge--secondary" text="input"/> 
> 
> 
> 
> 

#### [<code style={{ fontWeight: 'normal' }}>Chat_Channel.<b>right</b></code>](#)<Bullet />[`Chat_StudioRight!`](/organizer/content-api/graphql-event-api-schema/objects/chat-studio-right) <Badge class="badge badge--secondary" text="non-null"/> <Badge class="badge badge--secondary" text="object"/> 
> 
> 
> 
> 

#### [<code style={{ fontWeight: 'normal' }}>Chat_Channel.<b>enabledInteractions</b></code>](#)<Bullet />[`[Chat_ChannelInteractionType!]!`](/organizer/content-api/graphql-event-api-schema/enums/chat-channel-interaction-type) <Badge class="badge badge--deprecated badge--secondary" text="deprecated"/> <Badge class="badge badge--secondary" text="non-null"/> <Badge class="badge badge--secondary" text="enum"/> 
> 
> 
> :::caution DEPRECATED
> Use interactionsConfig instead
> :::
> 
> 
> 

#### [<code style={{ fontWeight: 'normal' }}>Chat_Channel.<b>interactionsOrder</b></code>](#)<Bullet />[`[Chat_ChannelInteractionType!]!`](/organizer/content-api/graphql-event-api-schema/enums/chat-channel-interaction-type) <Badge class="badge badge--deprecated badge--secondary" text="deprecated"/> <Badge class="badge badge--secondary" text="non-null"/> <Badge class="badge badge--secondary" text="enum"/> 
> 
> 
> :::caution DEPRECATED
> Use interactionsConfig instead
> :::
> 
> 
> 

#### [<code style={{ fontWeight: 'normal' }}>Chat_Channel.<b>interactionsConfig</b></code>](#)<Bullet />[`[Chat_ChannelInteractionConfigUnion!]!`](/organizer/content-api/graphql-event-api-schema/unions/chat-channel-interaction-config-union) <Badge class="badge badge--secondary" text="non-null"/> <Badge class="badge badge--secondary" text="union"/> 
> 
> 
> 
> 

#### [<code style={{ fontWeight: 'normal' }}>Chat_Channel.<b>translations</b></code>](#)<Bullet />[`[Chat_ChannelTranslation!]!`](/organizer/content-api/graphql-event-api-schema/objects/chat-channel-translation) <Badge class="badge badge--secondary" text="non-null"/> <Badge class="badge badge--secondary" text="object"/> 
> 
> 
> 
> 

### Returned by

[`attachChatroomsOnPlanning`](/organizer/content-api/graphql-event-api-schema/mutations/attach-chatrooms-on-planning)  <Badge class="badge badge--secondary" text="mutation"/><Bullet />[`attachChatroomsOnView`](/organizer/content-api/graphql-event-api-schema/mutations/attach-chatrooms-on-view)  <Badge class="badge badge--secondary" text="mutation"/><Bullet />[`chatrooms`](/organizer/content-api/graphql-event-api-schema/queries/chatrooms)  <Badge class="badge badge--secondary" text="query"/><Bullet />[`createChatroom`](/organizer/content-api/graphql-event-api-schema/mutations/create-chatroom)  <Badge class="badge badge--secondary" text="mutation"/><Bullet />[`deleteChatroom`](/organizer/content-api/graphql-event-api-schema/mutations/delete-chatroom)  <Badge class="badge badge--secondary" text="mutation"/><Bullet />[`detachChatroomsFromPlanning`](/organizer/content-api/graphql-event-api-schema/mutations/detach-chatrooms-from-planning)  <Badge class="badge badge--secondary" text="mutation"/><Bullet />[`detachChatroomsFromView`](/organizer/content-api/graphql-event-api-schema/mutations/detach-chatrooms-from-view)  <Badge class="badge badge--secondary" text="mutation"/><Bullet />[`updateChatroom`](/organizer/content-api/graphql-event-api-schema/mutations/update-chatroom)  <Badge class="badge badge--secondary" text="mutation"/><Bullet />[`updateChatroomsPermissions`](/organizer/content-api/graphql-event-api-schema/mutations/update-chatrooms-permissions)  <Badge class="badge badge--secondary" text="mutation"/>

### Member Of

[`Chat_ChannelUser`](/organizer/content-api/graphql-event-api-schema/objects/chat-channel-user)  <Badge class="badge badge--secondary" text="object"/><Bullet />[`Chat_Message`](/organizer/content-api/graphql-event-api-schema/objects/chat-message)  <Badge class="badge badge--secondary" text="object"/><Bullet />[`Chat_User`](/organizer/content-api/graphql-event-api-schema/objects/chat-user)  <Badge class="badge badge--secondary" text="object"/>
