mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-05 06:26:08 +00:00
Merge branch 'main' of github.com:socram03/biscuit into main
This commit is contained in:
parent
1f0a25bbcd
commit
3c1d53d5ff
@ -39,7 +39,7 @@ export class Guild extends BaseGuild implements Model {
|
||||
this.defaultMessageNotificationLevel = data.default_message_notifications;
|
||||
this.explicitContentFilterLevel = data.explicit_content_filter;
|
||||
this.members = data.members?.map((member) => new Member(session, { ...member, user: member.user! })) ?? [];
|
||||
this.roles = data.roles.map((role) => new Role(session, this.id, role));
|
||||
this.roles = data.roles.map((role) => new Role(session, data.id, role));
|
||||
}
|
||||
|
||||
splashHash?: bigint;
|
||||
|
@ -47,7 +47,7 @@ export class Role implements Model {
|
||||
|
||||
async delete(): Promise<void> {
|
||||
// cool jS trick
|
||||
await Guild.prototype.deleteRole.call({ id: this.guildId }, this.id);
|
||||
await Guild.prototype.deleteRole.call({ id: this.guildId, session: this.session }, this.id);
|
||||
}
|
||||
|
||||
toString() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user