func CreateGuild(client httd.Poster, params *CreateGuildParams) (ret *Guild, err error) {
	// TODO: check if bot
	// TODO-2: is bot in less than 10 guilds?
	_, body, err := client.Post(&httd.Request{
		Ratelimiter: endpoint.Guilds(),
		Endpoint:    endpoint.Guilds(),
		JSONParams:  params,
		ContentType: httd.ContentTypeJSON,
	})
	if err != nil {
		return
	}

	err = unmarshal(body, &ret)
	return
}
// CreateGuild [POST]       Create a new guild. Returns a guild object on success. Fires a Guild Create Gateway event.
// Endpoint                 /guilds
// Rate limiter             /guilds
// Discord documentation    https://discordapp.com/developers/docs/resources/guild#create-guild
// Reviewed                 2018-08-16
// Comment                  This endpoint. can be used only by bots in less than 10 guilds. Creating channel
//                          categories from this endpoint. is not supported.
CreateGuild [POST]       Create a new guild. Returns a guild object on success. Fires a Guild Create Gateway event.
// CreateGuild [ POST ] Create a new guild . Returns a guild object on success . Fires a Guild Create Gateway event . // Endpoint / guilds // Rate limiter / guilds // Discord documentation https : // discordapp . com / developers / docs / resources / guild#create - guild // Reviewed 2018 - 08 - 16 // Comment This endpoint . can be used only by bots in less than 10 guilds . Creating channel // categories from this endpoint . is not supported .
func CreateGuild(client httd.Poster, params *CreateGuildParams) (ret *Guild, err error) {
	_, body, err := client.Post(&httd.Request{
		Ratelimiter: endpoint.Guilds(),
		Endpoint:    endpoint.Guilds(),
		JSONParams:  params,
		ContentType: httd.ContentTypeJSON,
	})
	if err != nil {
		return
	}
	err = unmarshal(body, &ret)
	return
}
func CreateGuild ( client httd . Poster , params * CreateGuildParams ) ( ret * Guild , err error ) { _ , body , err := client . Post ( & httd . Request { Ratelimiter : endpoint . Guilds ( ) , Endpoint : endpoint . Guilds ( ) , JSONParams : params , ContentType : httd . ContentTypeJSON , } ) if err != nil { return } err = unmarshal ( body , & ret ) return }
CreateGuild [POST]       Create a new guild.
CreateGuild [ POST ] Create a new guild .
// TODO: check if bot // TODO-2: is bot in less than 10 guilds?