remove more uses of the deprictated function
This commit is contained in:
parent
00946b500a
commit
3894fcb976
8 changed files with 156 additions and 145 deletions
|
@ -384,7 +384,7 @@ class Guild{
|
|||
return this.member.isAdmin()
|
||||
}
|
||||
async markAsRead(){
|
||||
const build:{read_states:{channel_id:SnowFlake<Channel>,message_id:SnowFlake<Message>|null,read_state_type:number}[]}={read_states:[]};
|
||||
const build:{read_states:{channel_id:SnowFlake<Channel>,message_id:string|null,read_state_type:number}[]}={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});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue