github.com/meowstercatel/discordgo@v0.0.0-20250615204139-29b43d676735/examples/threads/README.md (about)

     1  <img align="right" alt="DiscordGo logo" src="/docs/img/discordgo.svg" width="200">
     2  
     3  ## DiscordGo Threads Example
     4  
     5  This example demonstrates how to utilize DiscordGo to manage channel threads.
     6  
     7  **Join [Discord Gophers](https://discord.gg/0f1SbxBZjYoCtNPP)
     8  Discord chat channel for support.**
     9  
    10  ### Build
    11  
    12  This assumes you already have a working Go environment setup and that
    13  DiscordGo is correctly installed on your system.
    14  
    15  From within the threads example folder, run the below command to compile the
    16  example.
    17  
    18  ```sh
    19  go build
    20  ```
    21  
    22  ### Usage
    23  
    24  ```
    25  Usage of threads:
    26    -token string
    27      	Bot token
    28  ```
    29  
    30  The below example shows how to start the bot from the threads example folder.
    31  
    32  ```sh
    33  ./threads -token YOUR_BOT_TOKEN
    34  ```