🔩
TouchGuild Docs
NPM
  • 😄Get started
    • 🌟Get started
    • TouchGuild's Guide
  • Older Documentation
    • Select version
      • Newer versions
      • v.0.1.7
        • What's new?
        • 🪑Components
          • 🤖Client
          • ☕Channel
          • 💬Message
          • 🏛️Guild
          • 🙇‍♂️🙇♂ User
          • 👾UserClient
          • 🫂Member
          • ☠️BannedMember
          • 🗓️CalendarEvent
          • 📆CalendarEventRSVP
          • 🗣️ForumTopic
          • 📃ForumTopicComment
          • 📄Doc
          • ↗️ListItem
          • 💭Webhook
        • ⚙️TouchGuild.DevTools
        • 🎒Examples
          • 🦾Snipe & editsnipe
          • 🎰Get bot's information
          • 🤯XP Awards
        • 🌐List of available events
      • v.0.1.6
        • 🏠Home
        • 🪑Components
          • 🤖Client
          • ☕Channel
          • 💬Message
          • 🏛️Guild
          • 🙇‍♂️🙇♂ User
          • 🫂Member
          • ☠️BannedMember
          • 🗓️CalendarEvent
          • 📆CalendarEventRSVP
          • 🗣️ForumTopic
          • 📄Doc
          • ↗️ListItem
          • 💭Webhook
        • 🌐List of available events
        • Types
          • MentionsType
          • ListItemNoteTypes
          • ChannelEditTypes
          • ChannelCategories
          • messageReactionRawTypes
          • messageReactionTypes
          • emojiTypes
          • socialLinkTypes
          • UserClientTypes
  • Misc
    • 😅FAQ
    • 👀Our vision
  • Deprecated Nightly
    • 🎯Features
    • Examples
      • Snipe & editsnipe
Powered by GitBook
On this page
  • Installation
  • Get started
  • Development builds (Nightly)
  • Install Nightly builds
  • Install the latest Nightly build automatically:
  • Install the latest Nightly build manually:
  • Additional links:
Edit on GitHub
  1. Get started

Get started

This page is deprecated.

NextSelect version

Last updated 2 years ago

Installation

NodeJS 16.16.0 or higher is required.

npm install touchguild@latest
yarn add touchguild@latest
pnpm add touchguild@latest

Get started

const TouchGuild = require('touchguild'); // import for CommonJS
// import * as TouchGuild from 'touchguild' // import for ESM & TS

const client = new TouchGuild.Client({token: 'insert token here'});

client.on('ready', ()=> {
   console.log(`Logged as ${client.user.username}`);
});

client.on('error', (err)=> {
   console.error("Whoops, somethin' went wrong..", err);
});

client.connect();

Note: CommonJS, ESM & Typescript are supported.

Development builds (Nightly)

Nightly builds are pre-release builds, they're having new features in real time. Once there's enough features, we're releasing them as a brand new 'stable build'.

Install Nightly builds

You can get new features before the stable release.

Install the latest Nightly build automatically:

npm install touchguild@nightly
yarn add touchguild@nightly
pnpm add touchguild@nightly

Install the latest Nightly build manually:

npm install dinographicpixels/touchguild#nightly
  1. Run the command

  2. Go to node_modules/touchguild

  3. Run: npm run build inside the touchguild folder

  4. Now, it's ready.

You need to reproduce those steps everytime you update to a newer nightly build.

Be aware that Nightly builds aren't stable and can have still have major bugs. If you face issues, feel free to report it by creating an issue on TouchGuild's GitHub, please specify that you're using a Nightly build.

You can check Nightly Features here.

Additional links:

Repository & NPM

Guide & documentation

Additional links

Our servers

😄
🌟
NPM Package
GitHub
Guide
Documentation
Our vision of the project
FAQ
Get started, youtube video
Our Discord server
Our Guilded server