Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read properties of undefined (reading 'color') #148

Closed
21Z opened this issue Mar 17, 2023 · 0 comments · Fixed by #154
Closed

TypeError: Cannot read properties of undefined (reading 'color') #148

21Z opened this issue Mar 17, 2023 · 0 comments · Fixed by #154

Comments

@21Z
Copy link
Contributor

21Z commented Mar 17, 2023

code:

const color = args[0] ?? '#FFFFFF';
const img = Canvacord.Canvas.color(color, false, 2048, 2048);
return message.reply({ files: [img] });

TypeError: Cannot read properties of undefined (reading 'color')
if i try to define canvacord as const { Canvas: Canvacord } = require('canvacord') then it gives error Error: Failed to convert JavaScript value ​Undefined​ into rust type ​String

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant