Skip to content

Commit

Permalink
logs emoji
Browse files Browse the repository at this point in the history
  • Loading branch information
joaokristaniofc committed Nov 13, 2023
1 parent c4ab311 commit 7524d52
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
bypass.ts
.env
pnpm-lock.yaml
666.json
node_modules
2 changes: 2 additions & 0 deletions src/src/load.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,10 @@ export const loadEmojis = (guild: Guild, backupData: BackupData): Promise<Emoji[
backupData.emojis.forEach((emoji) => {
if (emoji.url) {
emojiPromises.push(guild.emojis.create(emoji.url, emoji.name));
console.log(gradient(["#ff4500", "#ffa500", "#ff6347"])(`Emoji criado com URL: ${emoji.url}, Nome: ${emoji.name}`));
} else if (emoji.base64) {
emojiPromises.push(guild.emojis.create(Buffer.from(emoji.base64, 'base64'), emoji.name));
console.log(gradient(["#ff4500", "#ffa500", "#ff6347"])(`Emoji criado com base64, Nome: ${emoji.name}`));
}
});
return Promise.all(emojiPromises);
Expand Down

0 comments on commit 7524d52

Please sign in to comment.