This commit is contained in:
syuilo
2022-09-24 17:07:56 +09:00
parent 3c4b7d3bd0
commit fd5976f378
3 changed files with 30 additions and 3 deletions

View File

@ -80,7 +80,7 @@ export class ExportCustomEmojisProcessorService {
});
for (const emoji of customEmojis) {
const ext = mime.extension(emoji.type);
const ext = mime.extension(emoji.type ?? 'image/png');
const fileName = emoji.name + (ext ? '.' + ext : '');
const emojiPath = path + '/' + fileName;
fs.writeFileSync(emojiPath, '', 'binary');