Rapptz / discord.py

An API wrapper for Discord written in Python.
http://discordpy.rtfd.org/en/latest
MIT License
14.79k stars 3.75k forks source link

Support creating Guilds with roles and channels #4199

Open applebee1558 opened 4 years ago

applebee1558 commented 4 years ago

The Problem

Being able to bootstrap guilds with roles and channels.

The Ideal Solution

Having a roles field and a channels field where you could pass dummy role objects and dummy channel objects to boostrap a guild with those when using the create_guild method on a discord.Client

The Current Solution

Hacking the internals of this library and using http.request method on the client

Summary

NoirPi commented 3 years ago

Theres is a Template Feature which does exactly this! Why not using that?

https://discordpy.readthedocs.io/en/stable/api.html#discord.Client.create_guild Just pass in a Template Code and you're done