renamed functions
This commit is contained in:
@@ -374,7 +374,7 @@ class Localuser{
|
||||
}else{
|
||||
thing={id:temp.d.user_id}
|
||||
}
|
||||
message.giveReaction(temp.d.emoji,thing);
|
||||
message.makeReaction(temp.d.emoji,thing);
|
||||
}
|
||||
break;
|
||||
case "MESSAGE_REACTION_REMOVE":
|
||||
@@ -382,7 +382,7 @@ class Localuser{
|
||||
|
||||
const message=SnowFlake.getSnowFlakeFromID(temp.d.message_id,Message).getObject();
|
||||
console.log("test");
|
||||
message.takeReaction(temp.d.emoji,temp.d.user_id);
|
||||
message.removeReaction(temp.d.emoji,temp.d.user_id);
|
||||
}
|
||||
break;
|
||||
case "GUILD_MEMBERS_CHUNK":
|
||||
|
@@ -509,7 +509,7 @@ class Message{
|
||||
}
|
||||
func();
|
||||
}
|
||||
giveReaction(data:{name:string},member:Member|{id:string}){
|
||||
makeReaction(data:{name:string},member:Member|{id:string}){
|
||||
for(const thing of this.reactions){
|
||||
if(thing.emoji.name===data.name){
|
||||
thing.count++;
|
||||
@@ -527,7 +527,7 @@ class Message{
|
||||
});
|
||||
this.updateReactions();
|
||||
}
|
||||
takeReaction(data:{name:string},id:string){
|
||||
removeReaction(data:{name:string},id:string){
|
||||
console.log("test");
|
||||
for(const i in this.reactions){
|
||||
const thing=this.reactions[i];
|
||||
|
Reference in New Issue
Block a user