greencoast-studios / discord.js-extended

A framework to facilitate the repetitive tasks when creating discord bots. Used by Greencoast Studios.
https://docs.greencoaststudios.com/discord.js-extended/
MIT License
1 stars 0 forks source link

Feature/config arrays #44

Closed moonstar-x closed 2 years ago

moonstar-x commented 2 years ago

:pencil: Checklist

Make sure that your PR fulfills these requirements:

:page_facing_up: Description

This PR adds support for config values that require to be arrays. You can define arrays with the types string[], boolean[] and number[]. This PR also changes how the casting behaves when casting for types that contain string and something else. Before, for the type [string, number], the value would be kept as a string, whereas now, the value will be casted into any other type or be kept as a string if the casting failed.

:pushpin: Does this PR address any issue?

42