fixed bug with channel

This commit is contained in:
MathMan05 2024-07-29 15:58:30 -05:00
parent da6e8308c6
commit 121de3d9b2
2 changed files with 4 additions and 0 deletions

View file

@ -592,6 +592,7 @@ class Channel{
this.children=build;
}
async grabAfter(id:string){
console.log(id,this.lastmessage.id)
if(id===this.lastmessage.id){
return;
}
@ -795,6 +796,7 @@ class Channel{
messageCreate(messagep:any):void{
if(!this.hasPermission("VIEW_CHANNEL")){return}
const messagez=new Message(messagep.d,this);
this.lastmessage=messagez;
console.log(this.lastmessageid,messagez.snowflake,":3");
this.idToNext.set(this.lastmessageid,messagez.snowflake);
this.idToPrev.set(messagez.snowflake,this.lastmessageid);