Various improvements and checks

This commit is contained in:
MathMan05 2024-08-20 14:17:54 -05:00
parent a2abc91a2a
commit 1608d00beb
30 changed files with 541 additions and 360 deletions

View file

@ -1,5 +1,6 @@
import { Contextmenu } from "./contextmenu.js";
import { Guild } from "./guild.js";
import { emojijson } from "./jsontypes.js";
import { Localuser } from "./localuser.js";
class Emoji{
@ -21,7 +22,7 @@ class Emoji{
}
get localuser(){
if(this.owner instanceof Guild){
return this.guild.localuser;
return this.owner.localuser;
}else{
return this.owner;
}
@ -81,7 +82,11 @@ class Emoji{
for(;cats!==0;cats--){
const name=readString16();
const emojis=[];
const emojis:{
name:string,
skin_tone_support:boolean,
emoji:string
}[]=[];
let emojinumber=read16();
for(;emojinumber!==0;emojinumber--){
//console.log(emojis);