Skip to content

v1.2.5

Compare
Choose a tag to compare
@pakkographic pakkographic released this 01 Jul 14:31
· 169 commits to dev since this release

✨ What's new?

Resolved issues

  • WSManager#latency incorrect value
  • The setMemberXP method, not working properly.
  • TouchGuild instance crashes when deleting a message from a stream and voice channel (reported by Brunch).
  • Cannot import the following class structures: GuildCategory, GuildSubscription, Permission, Announcement, AnnouncementChannel, AnnouncementComment, AnnouncementReactionInfo
  • No event is emitted when RSVP Updates are sent in bulk.
  • Potential crash when deleting message due to unknown channel type.

Additions

General

  • Integrating the official markdown header by default when connecting and performing requests.
  • Added to each file a 'credits' header.
  • Notify developer when using the Client connect method if the version of TouchGuild is no longer the latest version (works for stable & dev), so you can update! (can be disabled when constructing the Client: updateWarning property)
  • When running a development build of TouchGuild, when using the Client connect method, the current build that you're running is shown.
  • A message when connecting TouchGuild using a copy/fork version is shown.
  • If the gapi_ part of the token is not present, it is added automatically.
  • Added missing exports (GuildCategory, GuildSubscription, Permission, Announcement, AnnouncementChannel, AnnouncementComment, AnnouncementReactionInfo)
  • X-Library-Details header in addition to User-Agent

Client

  • The guild member count has been added as a parameter of the guildMemberAdd event.
  • New constructor property inside the options object: isOfficialMarkdownEnabled, enabling developers to set the official markdown header to false if needed.

REST/Guilds

  • getMemberRoles, allowing you to retrieve a list of roles assigned to a specific guild member.

REST/Misc

  • Added signURL raw method. This method is used to create a URL Signature from a Guilded CDN URL, making you able to store the content returned within 5 minutes, as the signed URL will expire. This is a RAW method, meaning that the returned content isn't treated by TouchGuild, we let you take care of this, we're not supporting this decision due to the limitations it imposes. (More details about the request on the Guilded API Documentation website).

Endpoints

  • Added URL_SIGNATURES to endpoint list.

Guild

  • Added awardMember, setMemberXP, awardRole, shortcut/convenient methods.

Modifications

General

  • Improved JSDocs overall.
  • Improved coding style, making it more readable.
  • Updated GuildedAPI-Types.ts to v0.3.45.
  • Updated dependencies to the latest version.

REST/Guilds

  • Changed setMemberXP method from POST to PUT, making the request work properly.

Gateway events

  • Removed duplicate internal gateway event processing method: calendarRsvpManyUpdated from CalendarHandler, replacing it with calendarRsvpBulkUpdate.

Channel

  • stream channels now returns a TextChannel instead of a GuildChannel, this resolves the crash issue.
  • voice channels now returns a TextChannel instead of a GuildChannel, this resolves the crash issue.

Contributors:

Developers

Bug Reports:

  • Brunch

View changelogs

1.2.4...1.2.5