🔩
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
  • call
  • Constructor
  • Asynchronous methods
  • get(endpoint: string, token: string, queryParams?: string|object, crashOnRejection?: boolean)
  • post(endpoint: string, token: string, data: string|object, crashOnRejection?: boolean)
  • put(endpoint: string, token: string, data: string|object, crashOnRejection?: boolean)
  • patch(endpoint: string, token: string, data: string|object, crashOnRejection?: boolean)
  • delete(endpoint: string, token:string, crashOnRejection?: boolean)
  • Synchronous methods
  • syncGetChannel(channelID:string, client: Client)
  • syncGetMember(guildID: string, memberID: string, client:Client)
  • syncGetGuild(guildID: string, client: Client)
  • Deprecated methods.
  • SYNCFETCH(method: string, endpoint: string, TOKEN: any, BODY:string|any)
Edit on GitHub
  1. Older Documentation
  2. Select version
  3. v.0.1.7

TouchGuild.DevTools

TouchGuild's Developer Tools, made accessible to everyone.

call

Make requests to the Guilded API, communicate like TouchGuild does.

Constructor

new TouchGuild.DevTools.call();

Asynchronous methods

get(endpoint: string, token: string, queryParams?: string|object, crashOnRejection?: boolean)

Make a GET request.

Returns: Promise<object|void>

post(endpoint: string, token: string, data: string|object, crashOnRejection?: boolean)

Make a POST request.

Returns: Promise<object|void>

put(endpoint: string, token: string, data: string|object, crashOnRejection?: boolean)

Make a PUT request.

Returns: Promise<object|void>

patch(endpoint: string, token: string, data: string|object, crashOnRejection?: boolean)

Make a PATCH request.

Returns: Promise<object|void>

delete(endpoint: string, token:string, crashOnRejection?: boolean)

Make a DELETE request.

Returns: Promise<object|void>

Synchronous methods

syncGetChannel(channelID:string, client: Client)

Get a synchronously a channel.

syncGetMember(guildID: string, memberID: string, client:Client)

Get a synchronously a member.

syncGetGuild(guildID: string, client: Client)

Get a synchronously a guild.

Deprecated methods.

We do not recommend to use deprecated methods, they're may be very buggy & we do not plan to fix them.

FETCH(method: string, endpoint: string, TOKEN: any, BODY:string|any)

Make an HTTP request. (asynchronous)

Returns: Promise<object|void>

SYNCFETCH(method: string, endpoint: string, TOKEN: any, BODY:string|any)

Make an HTPP request. (synchronous)

Returns: object|void

PreviousWebhookNextExamples

Last updated 2 years ago

Returns:

Returns:

Returns:

⚙️
Channel
Member
Guild