Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Setting ¶
type Setting func(*Settings)
Setting is a function that configures a webhook.
func WithChannelID ¶
WithChannelID sets the channel ID of a webhook.
type Settings ¶
type Settings struct { Name *optional.String `json:"name,omitempty"` // Avatar is a data URI scheme that support JPG, GIF, and PNG formats, see // https://discord.com/developers/docs/resources/user#avatar-data // for more information. Avatar *optional.String `json:"avatar,omitempty"` ChannelID *optional.String `json:"channel_id,omitempty"` }
Settings describes a webhook's settings.
func NewSettings ¶
NewSettings returns new Settings to modify a webhook.
Click to show internal directories.
Click to hide internal directories.