mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-11 15:57:50 +02:00
Fix
This commit is contained in:
@@ -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` }] }
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user