Skip to content

Commit

Permalink
[removeChannelEmojis] Fix patch
Browse files Browse the repository at this point in the history
  • Loading branch information
lexisother committed May 19, 2023
1 parent fde6885 commit b8fdb7a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 29 deletions.
8 changes: 0 additions & 8 deletions plugins/removeChannelEmojis/index.ts

This file was deleted.

6 changes: 3 additions & 3 deletions plugins/removeChannelEmojis/plaintextPatches.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import { PlaintextPatch } from "replugged/dist/types";

export default [
{
find: /.{1,2}\.getGuildChannelEmojis/,
find: /iconEmoji/,
replacements: [
{
match: /(.{1,2}\.getGuildChannelEmojis)=function\(.\){.*?}/,
replace: (_, def) => `${def}=function() {}`,
match: /return\{iconEmoji:.{1,2}.*?\}/,
replace: (_) => `return{iconEmoji:null}`,
},
],
},
Expand Down
18 changes: 0 additions & 18 deletions plugins/removeChannelEmojis/removeChannelIcons.js

This file was deleted.

0 comments on commit b8fdb7a

Please sign in to comment.