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