This commit is contained in:
Dragon Fire
2024-05-03 10:28:55 -04:00
parent e92f705824
commit 6dbd29cb03
158 changed files with 158 additions and 159 deletions
+1 -1
View File
@@ -97,7 +97,7 @@ module.exports = class PeriodicTableCommand extends Command {
const phase = element.undiscovered ? `hypothetical ${element.phase || 'element'}` : element.phase;
return msg.say(
`**${element.name} (${element.symbol})** is a ${phase} in ${period}.`,
{ files: [{ attachment: canvas.toBuffer(), name: `${element.name}.png` }] }
{ files: [{ attachment: canvas.toBuffer('image/png'), name: `${element.name}.png` }] }
);
}