Documentation
¶
Index ¶
- Variables
- type Attachment
- type Channel
- type ChannelType
- func (ChannelType) Descriptor() protoreflect.EnumDescriptor
- func (x ChannelType) Enum() *ChannelType
- func (ChannelType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ChannelType) Number() protoreflect.EnumNumber
- func (x ChannelType) String() string
- func (ChannelType) Type() protoreflect.EnumType
- type Member
- func (*Member) Descriptor() ([]byte, []int)deprecated
- func (x *Member) GetBot() bool
- func (x *Member) GetCreatedAt() *timestamppb.Timestamp
- func (x *Member) GetJoinedAt() *timestamppb.Timestamp
- func (x *Member) GetUsername() string
- func (*Member) ProtoMessage()
- func (x *Member) ProtoReflect() protoreflect.Message
- func (x *Member) Reset()
- func (x *Member) String() string
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (x *Message) GetAttachments() []*Attachment
- func (x *Message) GetAuthor() *Member
- func (x *Message) GetChannel() *Channel
- func (x *Message) GetContent() string
- func (x *Message) GetMentions() []string
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (x *Message) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ChannelType_name = map[int32]string{ 0: "CHANNEL_TYPE_UNSPECIFIED", 1: "CHANNEL_TYPE_GUILD_TEXT", 2: "CHANNEL_TYPE_DM", 3: "CHANNEL_TYPE_GUILD_VOICE", 4: "CHANNEL_TYPE_GROUP_DM", 5: "CHANNEL_TYPE_GUILD_CATEGORY", 6: "CHANNEL_TYPE_GUILD_NEWS", 7: "CHANNEL_TYPE_UNUSED_7", 8: "CHANNEL_TYPE_UNUSED_8", 9: "CHANNEL_TYPE_UNUSED_9", 10: "CHANNEL_TYPE_GUILD_NEWS_THREAD", 11: "CHANNEL_TYPE_GUILD_PUBLIC_THREAD", 12: "CHANNEL_TYPE_GUILD_PRIVATE_THREAD", 13: "CHANNEL_TYPE_GUILD_STAGE_VOICE", 14: "CHANNEL_TYPE_GUILD_DIRECTORY", 15: "CHANNEL_TYPE_GUILD_FORUM", 16: "CHANNEL_TYPE_GUILD_MEDIA", } ChannelType_value = map[string]int32{ "CHANNEL_TYPE_UNSPECIFIED": 0, "CHANNEL_TYPE_GUILD_TEXT": 1, "CHANNEL_TYPE_DM": 2, "CHANNEL_TYPE_GUILD_VOICE": 3, "CHANNEL_TYPE_GROUP_DM": 4, "CHANNEL_TYPE_GUILD_CATEGORY": 5, "CHANNEL_TYPE_GUILD_NEWS": 6, "CHANNEL_TYPE_UNUSED_7": 7, "CHANNEL_TYPE_UNUSED_8": 8, "CHANNEL_TYPE_UNUSED_9": 9, "CHANNEL_TYPE_GUILD_NEWS_THREAD": 10, "CHANNEL_TYPE_GUILD_PUBLIC_THREAD": 11, "CHANNEL_TYPE_GUILD_PRIVATE_THREAD": 12, "CHANNEL_TYPE_GUILD_STAGE_VOICE": 13, "CHANNEL_TYPE_GUILD_DIRECTORY": 14, "CHANNEL_TYPE_GUILD_FORUM": 15, "CHANNEL_TYPE_GUILD_MEDIA": 16, } )
Enum value maps for ChannelType.
View Source
var File_proto_attachment_proto protoreflect.FileDescriptor
View Source
var File_proto_channel_proto protoreflect.FileDescriptor
View Source
var File_proto_member_proto protoreflect.FileDescriptor
View Source
var File_proto_message_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Attachment ¶
type Attachment struct {
Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"`
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
// contains filtered or unexported fields
}
func (*Attachment) Descriptor
deprecated
func (*Attachment) Descriptor() ([]byte, []int)
Deprecated: Use Attachment.ProtoReflect.Descriptor instead.
func (*Attachment) GetFilename ¶
func (x *Attachment) GetFilename() string
func (*Attachment) GetUrl ¶
func (x *Attachment) GetUrl() string
func (*Attachment) ProtoMessage ¶
func (*Attachment) ProtoMessage()
func (*Attachment) ProtoReflect ¶
func (x *Attachment) ProtoReflect() protoreflect.Message
func (*Attachment) Reset ¶
func (x *Attachment) Reset()
func (*Attachment) String ¶
func (x *Attachment) String() string
type Channel ¶
type Channel struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Type ChannelType `protobuf:"varint,2,opt,name=type,proto3,enum=proto.ChannelType" json:"type,omitempty"`
// contains filtered or unexported fields
}
func (*Channel) Descriptor
deprecated
func (*Channel) GetType ¶
func (x *Channel) GetType() ChannelType
func (*Channel) ProtoMessage ¶
func (*Channel) ProtoMessage()
func (*Channel) ProtoReflect ¶
func (x *Channel) ProtoReflect() protoreflect.Message
type ChannelType ¶
type ChannelType int32
All channel types are the Discord channel types +1
const ( ChannelType_CHANNEL_TYPE_UNSPECIFIED ChannelType = 0 ChannelType_CHANNEL_TYPE_GUILD_TEXT ChannelType = 1 ChannelType_CHANNEL_TYPE_DM ChannelType = 2 ChannelType_CHANNEL_TYPE_GUILD_VOICE ChannelType = 3 ChannelType_CHANNEL_TYPE_GROUP_DM ChannelType = 4 ChannelType_CHANNEL_TYPE_GUILD_CATEGORY ChannelType = 5 ChannelType_CHANNEL_TYPE_GUILD_NEWS ChannelType = 6 ChannelType_CHANNEL_TYPE_UNUSED_7 ChannelType = 7 ChannelType_CHANNEL_TYPE_UNUSED_8 ChannelType = 8 ChannelType_CHANNEL_TYPE_UNUSED_9 ChannelType = 9 ChannelType_CHANNEL_TYPE_GUILD_NEWS_THREAD ChannelType = 10 ChannelType_CHANNEL_TYPE_GUILD_PUBLIC_THREAD ChannelType = 11 ChannelType_CHANNEL_TYPE_GUILD_PRIVATE_THREAD ChannelType = 12 ChannelType_CHANNEL_TYPE_GUILD_STAGE_VOICE ChannelType = 13 ChannelType_CHANNEL_TYPE_GUILD_DIRECTORY ChannelType = 14 ChannelType_CHANNEL_TYPE_GUILD_FORUM ChannelType = 15 ChannelType_CHANNEL_TYPE_GUILD_MEDIA ChannelType = 16 )
func (ChannelType) Descriptor ¶
func (ChannelType) Descriptor() protoreflect.EnumDescriptor
func (ChannelType) Enum ¶
func (x ChannelType) Enum() *ChannelType
func (ChannelType) EnumDescriptor
deprecated
func (ChannelType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ChannelType.Descriptor instead.
func (ChannelType) Number ¶
func (x ChannelType) Number() protoreflect.EnumNumber
func (ChannelType) String ¶
func (x ChannelType) String() string
func (ChannelType) Type ¶
func (ChannelType) Type() protoreflect.EnumType
type Member ¶
type Member struct {
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
Bot bool `protobuf:"varint,2,opt,name=bot,proto3" json:"bot,omitempty"`
CreatedAt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
JoinedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=joined_at,json=joinedAt,proto3" json:"joined_at,omitempty"`
// contains filtered or unexported fields
}
func (*Member) Descriptor
deprecated
func (*Member) GetCreatedAt ¶
func (x *Member) GetCreatedAt() *timestamppb.Timestamp
func (*Member) GetJoinedAt ¶
func (x *Member) GetJoinedAt() *timestamppb.Timestamp
func (*Member) GetUsername ¶
func (*Member) ProtoMessage ¶
func (*Member) ProtoMessage()
func (*Member) ProtoReflect ¶
func (x *Member) ProtoReflect() protoreflect.Message
type Message ¶
type Message struct {
Content string `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"`
Author *Member `protobuf:"bytes,2,opt,name=author,proto3" json:"author,omitempty"`
Channel *Channel `protobuf:"bytes,3,opt,name=channel,proto3" json:"channel,omitempty"`
Mentions []string `protobuf:"bytes,4,rep,name=mentions,proto3" json:"mentions,omitempty"`
Attachments []*Attachment `protobuf:"bytes,5,rep,name=attachments,proto3" json:"attachments,omitempty"`
// contains filtered or unexported fields
}
func (*Message) Descriptor
deprecated
func (*Message) GetAttachments ¶
func (x *Message) GetAttachments() []*Attachment
func (*Message) GetChannel ¶
func (*Message) GetContent ¶
func (*Message) GetMentions ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶
func (x *Message) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.