title: Add button components to a message (discord.py)
body: <p>I was wondering after seeing <a href="https://discord.com/developers/docs/interactions/message-components" rel="nofollow noreferrer" title="Discord's API reference on message components">this</a> (message components) on discord's API reference if there was any way to implement it using python ?</p>
  <blockquote>
  <p>I tried making a json array and passing it in my message but couldn't make it work.</p>
  <p>I also tried looking on the reference for python but couldn't find anything.</p>
  </blockquote>
  <p>Here's my code</p>
  <pre class="lang-py prettyprint-override"><code>components= [
    {
      &quot;type&quot;: 2,
      &quot;label&quot;: &quot;Clear les kick&quot;,
      &quot;style&quot;: 4,
      &quot;custom_id&quot;: &quot;clear_kick_button&quot;
    }
  ]
  @slash.slash(name=&quot;kicked&quot;, description=&quot;Voir qui a été kick et combien de fois.&quot;, guild_ids=guild_id)
  async def kicked(ctx):
    await ctx.send(&quot;test&quot;, components= components)
  </code></pre>
  <p>If you have any informations thank you if you share it.</p>