channel

package
v0.0.0-...-3d4fb19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateMessageOption

type CreateMessageOption func(*createMessageParams)

func WithEmbed

func WithEmbed(e *types.Embed) CreateMessageOption

func WithMessageContent

func WithMessageContent(c string) CreateMessageOption

func WithMessageReference

func WithMessageReference(r string) CreateMessageOption

type Resource

type Resource struct {
	// contains filtered or unexported fields
}

func NewChannelResource

func NewChannelResource(rc *resources.RestClient, id string) *Resource

func (*Resource) CreateMessage

func (r *Resource) CreateMessage(ctx context.Context, opts ...CreateMessageOption) (*types.Message, error)

func (*Resource) Get

func (r *Resource) Get(ctx context.Context) (*types.Channel, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL