🔩
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
  • Properties
  • Constructor
Edit on GitHub
  1. Older Documentation
  2. Select version
  3. v.0.1.7
  4. Components

UserClient

It is the 'user' of the logged bot, it has every information about the connected bot.

Previous🙇♂ UserNextMember

Last updated 2 years ago

Properties

Property
Description
Type

_client

Client

id

Bot user id

String

botID

Bot ID

String

type

Type of user, bot or user

String

username

User's username

String

_createdAt

Timestamp of the user's creation.

Number

createdAt

string representation of the _createdAt timestamp.

Date

createdBy

ID of the bot's owner.

String

bot

Boolean that shows if the user is a bot or not.

Boolean

Constructor

new UserClient(rawData, client)
Properties
Description
Type
Required?

rawData

raw data received from ws and converted to JSON

Object

true

client

Client

true

Do not use this constructor unless you know what you're doing. This constructor is used to return you rawdata into component.

🪑
👾
Client
Client