mirror of
https://github.com/stoatchat/javascript-client-sdk.git
synced 2026-07-20 09:35:15 -04:00
feat: simple interface for permission checks #14
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @insertish on GitHub (Apr 17, 2022).
Expose simple and straightforward permission checks.
channel.havePermission(Permission.ABC)server.havePermission(Permission.ABC)member.hasPermission(Permission.ABC)