Merge branch 'main' of github.com:socram03/biscuit into main

This commit is contained in:
socram03 2022-06-25 19:44:30 -04:00
parent 1f0a25bbcd
commit 3c1d53d5ff
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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() {