mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-03 05:26:07 +00:00
hotfix: forgot to pass session
This commit is contained in:
parent
6de668d223
commit
3562400c56
@ -35,7 +35,7 @@ export class Guild extends BaseGuild implements Model {
|
|||||||
this.defaultMessageNotificationLevel = data.default_message_notifications;
|
this.defaultMessageNotificationLevel = data.default_message_notifications;
|
||||||
this.explicitContentFilterLevel = data.explicit_content_filter;
|
this.explicitContentFilterLevel = data.explicit_content_filter;
|
||||||
this.members = data.members?.map((member) => new Member(session, { ...member, user: member.user! })) ?? [];
|
this.members = data.members?.map((member) => new Member(session, { ...member, user: member.user! })) ?? [];
|
||||||
this.roles = data.roles.map((role) => new Role(session, this, role));
|
this.roles = data.roles.map((role) => new Role(session, data.id, role));
|
||||||
}
|
}
|
||||||
|
|
||||||
splashHash?: bigint;
|
splashHash?: bigint;
|
||||||
|
@ -47,7 +47,7 @@ export class Role implements Model {
|
|||||||
|
|
||||||
async delete(): Promise<void> {
|
async delete(): Promise<void> {
|
||||||
// cool jS trick
|
// 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() {
|
toString() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user