> For the complete documentation index, see [llms.txt](https://devkiki7000.gitbook.io/discord-components/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://devkiki7000.gitbook.io/discord-components/ko-kr/main-docs/discordcomponents.md).

# DiscordComponents

## DiscordComponents

Represents discord\_components client.

{% tabs %}
{% tab title="Parameters" %}

| bot                                                                                 |                                           |
| ----------------------------------------------------------------------------------- | ----------------------------------------- |
| <p>The bot to wrap.</p><p></p><p><strong>Type:</strong> <code>discord.Client</code> | <code>discord.ext.commands.BOT</code></p> |

| change\_discor&#x64;*\_*&#x6D;ethods                                                                                                                                                                                         |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Whether to override the discord methods.<br>So with this enabled, some changes could be needed to your code.</p><p></p><p><strong>Type:</strong> <code>bool</code></p><p><strong>Default:</strong> <code>True</code> </p> |

| add\_listener                                                                                                                                                                                                                                                                                                                                                                                   |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Whether to add the <code>on\_socket\_response</code> event or override it (Only when the bot is <code>discord.ext.commands.Bot</code>). <br>If you are already using <code>on\_socket\_response</code> on your bot or on a third party library, we recommend you to enable this.</p><p></p><p><strong>Type:</strong> <code>bool</code></p><p><strong>Default:</strong> <code>True</code></p> |
| {% endtab %}                                                                                                                                                                                                                                                                                                                                                                                    |

{% tab title="Attributes" %}

| bot                                                                                 |                                           |
| ----------------------------------------------------------------------------------- | ----------------------------------------- |
| <p>Your discord bot</p><p></p><p><strong>Type:</strong> <code>discord.Client</code> | <code>discord.ext.commands.Bot</code></p> |
| {% endtab %}                                                                        |                                           |

{% tab title="Methods" %}

| change\_discor&#x64;*\_*&#x6D;ethods                                                                                                                                                                                                                                           |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| <p>Overrides the methods of the discord.py library.<br><br><strong>Parameters:</strong></p><ul><li><strong>add\_listener</strong> (<code>bool</code>, defaults to <code>True</code>) - Same as the init parameter.</li></ul><p><strong>Returns:</strong> <code>void</code></p> |

| fetch\_componen&#x74;*\_*&#x6D;essage                                                                                                                                                                                                                                                                                                                           |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p>Converts a message object to a ComponentMessage object.<br></p><p><strong>Parameters:</strong></p><ul><li><strong>message</strong> (<code>discord.Message</code>) - The message to convert.</li></ul><p><strong>Returns:</strong> <a href="/discord-components/ko-kr/main-docs/componentmessage.md"><code>discord-components.ComponentMessage</code></a></p> |
| {% endtab %}                                                                                                                                                                                                                                                                                                                                                    |
| {% endtabs %}                                                                                                                                                                                                                                                                                                                                                   |
