# Chat Shortcode

This is a self-closing shortcode. It outputs messages from a selected channel. You can set shortcode attributes to alter its behavior.

***color*** - will allow you to select a visual style to display on the website. Available options are `light` and `dark`.

***title*** - is a text written in the widget's header, next to the icon.

{% hint style="info" %}
If you remove the title, the header will disappear.
{% endhint %}

***channel*** - this is a source channel from which the shortcode takes messages. Put here it's ID. [Here you can learn how to find channel ID.](https://mykolapetrovych.gitbook.io/argus-wordpress-plugin/version-6.1.0/general-functions/discord/how-to-find-discord-ids)

***pinned-messages*** - will allow you to output only pinned messages from the channel. Available options are `noFilter` and `onlyPinned`.

***tenor-messages*** - will allow you to download tenner video memes and show them in the chat. Available options are `video` and `link`.

{% hint style="info" %}
Tener videos are played automatically. This may influence the total traffic your visitors will spend browsing your website.
{% endhint %}

***image-messages*** - will allow you to display images from the chat. If this is disabled, but links are permitted, images will be shown as links. Available options are `image` and `link`.

***custom-emoji-messages*** - will allow you to display images of custom emojis in messages. Available options are `image` and `hide`.

***link-messages*** - this will allow you to display images and Tenor as text links if they are disabled. Links will be displayed as text, not as active links. Available options are `link` and `hide`.

***quantity*** - this is the number of messages that will be displayed. The minimum quantity is `1`, and the maximum is `50`

***height*** - this number, in pixels, will limit the maximum height of the message area. If messages need more space, then a scroll will appear. The minimum height is `200`.

***footer-text*** - this is a text in the footer of the widget. It is a call to action near an invitation button.

***link*** - this is the channel to which the visitor will be joined if he clicks the invitation button. Put here it's ID. [Here you can learn how to find channel ID.](https://mykolapetrovych.gitbook.io/argus-wordpress-plugin/version-6.1.0/general-functions/discord/how-to-find-discord-ids)

{% hint style="info" %}
If you remove the footer text and the invite, then the footer will disappear.
{% endhint %}

Shortcode example:

```shortcode
[argus-discord-chat-shortcode color="dark" channel="860842180330782751" title="Chat" pinned-messages="noFilter" tenor-messages="video" image-messages="image" link-messages="link" custom-emoji-messages="image" quantity="15" height="300" link="860842180330782751" footer-text="Join Us"]
```
