func GetChannel(client httd.Getter, id Snowflake) (ret *Channel, err error) {
	if id.Empty() {
		return nil, errors.New("not a valid snowflake")
	}

	_, body, err := client.Get(&httd.Request{
		Ratelimiter: ratelimitChannel(id),
		Endpoint:    endpoint.Channel(id),
	})
	if err != nil {
		return
	}

	err = unmarshal(body, &ret)
	return
}
// GetChannel [GET]         Get a channel by Snowflake. Returns a channel object.
// Endpoint                 /channels/{channel.id}
// Rate limiter [MAJOR]     /channels/{channel.id}
// Discord documentation    https://discordapp.com/developers/docs/resources/channel#get-channel
// Reviewed                 2018-06-07
// Comment                  -
GetChannel [GET]         Get a channel by Snowflake. Returns a channel object.
// GetChannel [ GET ] Get a channel by Snowflake . Returns a channel object . // Endpoint / channels / { channel . id } // Rate limiter [ MAJOR ] / channels / { channel . id } // Discord documentation https : // discordapp . com / developers / docs / resources / channel#get - channel // Reviewed 2018 - 06 - 07 // Comment -
func GetChannel(client httd.Getter, id Snowflake) (ret *Channel, err error) {
	if id.Empty() {
		return nil, errors.New("not a valid snowflake")
	}
	_, body, err := client.Get(&httd.Request{
		Ratelimiter: ratelimitChannel(id),
		Endpoint:    endpoint.Channel(id),
	})
	if err != nil {
		return
	}
	err = unmarshal(body, &ret)
	return
}
func GetChannel ( client httd . Getter , id Snowflake ) ( ret * Channel , err error ) { if id . Empty ( ) { return nil , errors . New ( " " ) } _ , body , err := client . Get ( & httd . Request { Ratelimiter : ratelimitChannel ( id ) , Endpoint : endpoint . Channel ( id ) , } ) if err != nil { return } err = unmarshal ( body , & ret ) return }
GetChannel [GET]         Get a channel by Snowflake.
GetChannel [ GET ] Get a channel by Snowflake .