Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

v0.0.2-alpha

Pre-release
Pre-release
Compare
Choose a tag to compare
@Defxult Defxult released this 27 May 18:33
· 269 commits to main since this release

New Features

  • Added function getVariable().
  • Added function oauth2Url().
  • Added method Array.chunked().
  • Added property Guild.safetyAlertsChannelId.
  • Added property Discord.emojis.
  • Added case Guild.Feature.raidAlertsDisabled.
  • Added enum OAuth2Scopes (see updated).

Bug Fixes

  • Fixed Embed.clear() not removing the timestamp.
  • Fixed PartialInvite.inviter error when missing inviter.

Updated

  • Function clean() now escapes bullet points and headers.
  • AutoModerationRule
    • (Breaking Change) Renamed AutoModerationRule.TriggerData to Metadata.
    • (Breaking Change) Renamed AutoModerationRule.Edit.triggers to metadata.
    • Added AutoModerationRule.metadata. This now houses data such as keywordFilter, presets, etc.
    • Added AutoModerationRule.Metadata.mentionRaidProtectionEnabled.
    • Added AutoModerationRule.Metadata documentation.
    • (Breaking Change) Removed AutoModerationRule.keywordFilter.
    • (Breaking Change) Removed AutoModerationRule.presets.
    • (Breaking Change) Removed parameter mentionTotalLimit from AutoModerationRule.Metadata.
  • (Breaking Change) Parameter triggerData renamed to metadata in method Guild.createAutoModerationRule().
  • With the addition of OAuth2Scopes, the following has been updated:
    • (Breaking Change) Property Application.InstallParams.scopes is now of type Set<OAuth2Scopes> (was Array<String>).
    • (Breaking Change) Property Guild.Integration.scopes is now of type Set<OAuth2Scopes> (was Array<String>).