mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-03 05:26:07 +00:00
fix: add member permissions
This commit is contained in:
parent
9a299a5e49
commit
ff0e7ee599
@ -15,6 +15,7 @@ import {
|
|||||||
USER_DEFAULT_AVATAR,
|
USER_DEFAULT_AVATAR,
|
||||||
THREAD_USER,
|
THREAD_USER,
|
||||||
} from '@biscuitland/api-types';
|
} from '@biscuitland/api-types';
|
||||||
|
import { Permissions } from './special/permissions';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents a guild member
|
* Represents a guild member
|
||||||
@ -38,6 +39,7 @@ export class Member implements Model {
|
|||||||
? Number.parseInt(data.premium_since)
|
? Number.parseInt(data.premium_since)
|
||||||
: undefined;
|
: undefined;
|
||||||
|
|
||||||
|
this.channelPermissions = data.permissions ? new Permissions(BigInt(data.permissions)) : undefined;
|
||||||
this.joinedTimestamp = Number.parseInt(data.joined_at);
|
this.joinedTimestamp = Number.parseInt(data.joined_at);
|
||||||
this.roles = data.roles;
|
this.roles = data.roles;
|
||||||
this.deaf = !!data.deaf;
|
this.deaf = !!data.deaf;
|
||||||
@ -67,6 +69,9 @@ export class Member implements Model {
|
|||||||
/** when the user started boosting the guild */
|
/** when the user started boosting the guild */
|
||||||
premiumSince?: number;
|
premiumSince?: number;
|
||||||
|
|
||||||
|
/** total permissions of the member in the channel, including overwrites, returned when in the interaction object */
|
||||||
|
channelPermissions?: Permissions;
|
||||||
|
|
||||||
/** when the user joined the guild */
|
/** when the user joined the guild */
|
||||||
joinedTimestamp: number;
|
joinedTimestamp: number;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user