Skip to content

Fix $try, custom function errors and crashes - #421

Open
Daaisukidayo wants to merge 2 commits into
tryforge:devfrom
Daaisukidayo:dev
Open

Daaisukidayo wants to merge 2 commits into
tryforge:devfrom
Daaisukidayo:dev

Conversation

@Daaisukidayo

Copy link
Copy Markdown
Contributor
  • $try catches raw exceptions and runs catch only on errors. $stop, $break, $continue, $onlyIf and $return pass through it
  • Custom functions pass errors to the caller through a new throwErrors flag in IRunnable, $try and silent operator work with them
  • Silent operator now works at any depth. Raw errors still go to console
  • $callLocalFunction passes errors up instead of printing them as text
  • $setTimeout, $setInterval, $async, $wsOn, $wsSend and $await filters log errors to console instead of losing them or crashing
  • JSON functions can no longer reach Object.prototype
  • Fixed $advancedBar crashing the process, length is capped at 4096
  • Fixed $setChannelArchiveDuration crashing on API errors and always returning true

… JSON functions and crashes in $advancedBar, $setChannelArchiveDuration, websocket callbacks and $await filters
@Berk404
Berk404 requested a review from aggelos-007 November 4, 2026 19:39
…sers, fixed ArgType.Invite, ArgType.URL, buffer functions and $entitlementConsume
@Daaisukidayo

Copy link
Copy Markdown
Contributor Author
  • Added $setInviteRoles and $setInviteTargetUsers, used by the next $createInvite
  • Added $updateInviteTargetUsers for existing invites
  • Added roles property to invites
  • Fixed ArgType.Invite rejecting invite codes and links
  • Fixed ArgType.URL rejecting http links
  • Fixed $bufferLength, $bufferReadInt32, $bufferReadUtf8 and $bufferToString always returning nothing
  • Fixed $entitlementConsume never accepting its argument and returning a promise
  • Updated discord.js to 14.28.1

THESE CHANGES HAVEN'T YET BEEN TESTED

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant