Added basic ignore/unignore functionality

This commit is contained in:
rainbow napkin 2026-11-08 21:01:01 -05:00
parent 999fae91b7
commit b80f82b9f2
6 changed files with 139 additions and 1 deletions

View file

@ -229,6 +229,16 @@ class chatBox{
* @param {Object} data De-hydrated chat object from server
*/
displayChat(data){
//For every douchebag in the ignored users list
for(const douchebag of this.client.user.ignored){
//If this message is from the douchebag in question
if(data.user == douchebag.user){
//tell it to fuck off and die
return;
}
}
//Append the post-processed chat-body to the chat buffer
this.chatBuffer.appendChild(this.chatPostprocessor.postprocess(data));