Skip to content

Commit

Permalink
Make PermissionManager not freestanding (#118)
Browse files Browse the repository at this point in the history
Closes #112.

`PermissionManager` relies on TCCPP. In freestanding, you get a
`TypeError` when it accesses `this.wheatley.roles.muted.id`.

---------

Co-authored-by: Jeremy Rifkin <[email protected]>
  • Loading branch information
Eisenwave and jeremy-rifkin authored Nov 10, 2024
1 parent 16fee7a commit f4a90af
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/components/permissions-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ type channel_permission_entry = {
};

export default class PermissionManager extends BotComponent {
static override get is_freestanding() {
return true;
}

category_permissions: Record<string, category_permission_entry> = {};
channel_overrides: Record<string, channel_permission_entry> = {};

Expand Down

0 comments on commit f4a90af

Please sign in to comment.