get rid of snowflake stuff more

This commit is contained in:
MathMan05 2024-09-03 10:41:17 -05:00
parent 03041cf9fd
commit 004beb4955
13 changed files with 23 additions and 47 deletions

View file

@ -89,7 +89,7 @@ class Guild {
this.headers = this.owner.headers;
this.channels = [];
this.channelids = {};
this.snowflake = new SnowFlake(json.id, this);
this.snowflake = new SnowFlake(json.id);
this.properties = json.properties;
this.roles = [];
this.roleids = new Map();
@ -387,7 +387,7 @@ class Guild {
const build = { read_states: [] };
for (const thing of this.channels) {
if (thing.hasunreads) {
build.read_states.push({ channel_id: thing.snowflake, message_id: thing.lastmessageid, read_state_type: 0 });
build.read_states.push({ channel_id: thing.id, message_id: thing.lastmessageid, read_state_type: 0 });
thing.lastreadmessageid = thing.lastmessageid;
if (!thing.myhtml)
continue;