Documentation
¶
Index ¶
- type Auth
- type Auth_DeleteAllSessions
- type Auth_DeleteSession
- type Authenticated
- type Bulk
- type ChannelAck
- type ChannelCreate
- type ChannelDelete
- type ChannelGroupJoin
- type ChannelGroupLeave
- type ChannelStartTyping
- type ChannelStopTyping
- type ChannelUpdate
- type EmojiCreate
- type EmojiDelete
- type Error
- type Event
- type EventInterface
- type Message
- type MessageAppend
- type MessageAppendData
- type MessageDelete
- type MessageReact
- type MessageRemoveReaction
- type MessageUnreact
- type MessageUpdate
- type Pong
- type Ready
- type ReportCreate
- type ServerCreate
- type ServerDelete
- type ServerMemberJoin
- type ServerMemberLeave
- type ServerMemberUpdate
- type ServerRoleDelete
- type ServerRoleUpdate
- type ServerUpdate
- type UserPlatformWipe
- type UserRelationship
- type UserSettingsUpdate
- type UserUpdate
- type WebhookCreate
- type WebhookDelete
- type WebhookUpdate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth_DeleteAllSessions ¶
type Auth_DeleteSession ¶
type Authenticated ¶
type Authenticated struct {
Event
}
type ChannelAck ¶
type ChannelCreate ¶
type ChannelDelete ¶
type ChannelGroupJoin ¶
type ChannelGroupLeave ¶
type ChannelStartTyping ¶
type ChannelStopTyping ¶
type ChannelUpdate ¶
type ChannelUpdate struct { Event // Channel ID Id string `json:"id"` // Partial channel object, not all data is available // // Exactly which fields are available is subject to change and thus not documented. Data *types.Channel `json:"data"` // Clear is a field to remove, one of Icon/Description // // Grevolt plays it safe here, and uses the FieldsChannel type already used // throughout the API just in case the docs are out-of-date. // // This does not affect users, as it expands and not reduces the possible // values. Clear []types.FieldsChannel `json:"clear"` }
type EmojiCreate ¶
type EmojiDelete ¶
type EventInterface ¶
type EventInterface interface {
EventType() string
}
type MessageAppend ¶
type MessageAppend struct { Event // The message ID Id string `json:"id"` // Channel ID ChannelId string `json:"channel"` // Partial message object, not all data is available // // Exactly which fields are available is subject to change and not documented. Append *MessageAppendData `json:"append"` }
type MessageAppendData ¶
type MessageAppendData struct { // Embeds in the message Embeds []*types.MessageEmbed `json:"embeds,omitempty"` }
Work in progress, not well documented
type MessageDelete ¶
type MessageReact ¶
type MessageRemoveReaction ¶
type MessageUnreact ¶
type MessageUpdate ¶
type ReportCreate ¶
type ServerCreate ¶
type ServerDelete ¶
type ServerMemberJoin ¶
type ServerMemberLeave ¶
type ServerMemberUpdate ¶
type ServerMemberUpdate struct { Event // Ids Id *types.MemberId `json:"id"` // Partial server member object, not all data is available // // Exactly which fields are available is subject to change and thus not documented. Data *types.Member `json:"data"` // Clear is a field to remove, one of Nickname/Avatar // // Grevolt plays it safe here, and uses the FieldsServer type already used // throughout the API just in case the docs are out-of-date. // // This does not affect users, as it expands and not reduces the possible // values. Clear []types.FieldsMember `json:"clear"` }
type ServerRoleDelete ¶
type ServerRoleUpdate ¶
type ServerRoleUpdate struct { Event // Server ID Id string `json:"id"` // Role ID RoleId string `json:"role_id"` // Partial channel object, not all data is available // // Exactly which fields are available is subject to change and thus not documented. Data *types.Role `json:"data"` // Clear is a field to remove, one of Colour // // Grevolt plays it safe here, and uses the FieldsRole type already used // throughout the API just in case the docs are out-of-date. // // This does not affect users, as it expands and not reduces the possible // values. Clear []types.FieldsRole `json:"clear"` }
type ServerUpdate ¶
type ServerUpdate struct { Event // Server ID Id string `json:"id"` // Partial server object, not all data is available // // Exactly which fields are available is subject to change and thus not documented. Data *types.Server `json:"data"` // Clear is a field to remove, one of Icon/Banner/Description // // Grevolt plays it safe here, and uses the FieldsServer type already used // throughout the API just in case the docs are out-of-date. // // This does not affect users, as it expands and not reduces the possible // values. Clear []types.FieldsServer `json:"clear"` }
type UserPlatformWipe ¶
type UserRelationship ¶
type UserRelationship struct { Event // Your user Id // // <the your above is very important, its the currently logged in user id, not the // new relationship's user id> Id string `json:"id"` // <not well documented, its likely the new relationship's user object> User *types.User `json:"user"` // <relationship status, same as API> // // <in source code, this is mentioned as deprecated, so avoid using this field> Relationship types.RelationshipStatus `json:"status"` }
type UserSettingsUpdate ¶
type UserSettingsUpdate struct { Event // User Id UserId string `json:"user_id"` // User settings // // <until better documentation is released, you're on your own> Update map[string]any `json:"update"` }
<undocumented, will likely be available in a future release>
type UserUpdate ¶
type UserUpdate struct { Event // User Id Id string `json:"id"` // Partial channel object, not all data is available // // Exactly which fields are available is subject to change and thus not documented. Data *types.User `json:"data"` // Clear is a field to remove, one of ProfileContent/ProfileBackground/StatusText/Avatar // // Grevolt plays it safe here, and uses the FieldsServer type already used // throughout the API just in case the docs are out-of-date. // // This does not affect users, as it expands and not reduces the possible // values. Clear []types.FieldsUser `json:"clear"` // <undocumented, may exist???> EventId string `json:"event_id,omitempty"` }
type WebhookCreate ¶
type WebhookDelete ¶
type WebhookUpdate ¶
type WebhookUpdate struct { Event // Server ID Id string `json:"id"` // Partial webhook object, not all data is available // // Exactly which fields are available is subject to change and thus not documented. Data *types.Webhook `json:"data"` // Clear is a field to remove, one of <undocumented> // // Grevolt plays it safe here, and uses the FieldsWebhook type already used // throughout the API just in case the docs are out-of-date. // // This does not affect users, as it expands and not reduces the possible // values. Clear []types.FieldsWebhook `json:"clear"` }
Source Files
¶
- auth.go
- authenticated.go
- bulk.go
- channel_ack.go
- channel_create.go
- channel_delete.go
- channel_group_join.go
- channel_group_leave.go
- channel_start_typing.go
- channel_stop_typing.go
- channel_update.go
- emoji_create.go
- emoji_delete.go
- error.go
- i__common.go
- message.go
- message_append.go
- message_delete.go
- message_react.go
- message_remove_reaction.go
- message_unreact.go
- message_update.go
- pong.go
- ready.go
- report_create.go
- server_create.go
- server_delete.go
- server_member_join.go
- server_member_leave.go
- server_member_update.go
- server_role_delete.go
- server_role_update.go
- server_update.go
- user_platform_wipe.go
- user_relationship.go
- user_settings_update.go
- user_update.go
- webhook_create.go
- webhook_delete.go
- webhook_update.go
Click to show internal directories.
Click to hide internal directories.