Skip to content

Commit

Permalink
Custom url instead emoji.url
Browse files Browse the repository at this point in the history
  • Loading branch information
cafeed28 committed Dec 23, 2022
1 parent 81a3b34 commit 0815032
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"discordID": "1000992611840049192",
"github": "cafeed28"
},
"version": "1.0.3",
"version": "1.0.4",
"updater": {
"type": "github",
"id": "cafeed28/replugged-nitrospoof"
Expand Down
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ export function start(): void {
const name = emoji.originalName || emoji.name;

const searchString = `<${animated}:${name}:${emoji.id}>`;
const replaceUrl = `https://cdn.discordapp.com/emojis/${emoji.id}?size=48`; // TODO: configurable emoji size (when replugged settings is done)

message.content = message.content.replace(searchString, emoji.url);
message.content = message.content.replace(searchString, replaceUrl);
}

return args;
Expand Down

0 comments on commit 0815032

Please sign in to comment.