MrHemlock / auto_guild

Creates a Discord server based on a template you layout, making it an easy and quick way to flesh out a server to fit your needs.
MIT License
13 stars 0 forks source link

Allow Invalid Channel "Types" #8

Open HassanAbouelela opened 2 years ago

HassanAbouelela commented 2 years ago

Currently, auto_guild can only understand text and voice as channel types, but if a number was allowed, then existing configs can be used as templates. For instance, the following is what the production config for the pydis bot would look like:

categories:
  information:
    - welcome: text

In the proposed system, text can be a number: welcome: 123456789. Under the proposed system, any unrecognized number would default to text, which in the case of the python bot is just fine.

Alternatively, channels could be converted to objects like categories with a type and id key. This introduces more bloat, but makes it more feasible to use the config and template as one.