Documentation ¶
Overview ¶
Package discord_gateway is a generated protocol buffer package.
It is generated from these files:
gateway.proto
It has these top-level messages:
NilMessage EditRoleRequest EditRoleResponse SendMessageRequest UpdateMemberRequest UpdateMemberResponse GetAllMembersRequest GuildObjectRequest GetMembersResponse GetRoleResponse CreateRoleRequest CreateRolesResponse DeleteRoleRequest DeleteRoleResponse GetUserRequest GetUserResponse Role Member User
Package discord_gateway is a generated protocol buffer package.
It is generated from these files:
gateway.proto
It has these top-level messages:
NilMessage EditRoleRequest EditRoleResponse SendMessageRequest UpdateMemberRequest UpdateMemberResponse GetAllMembersRequest GuildObjectRequest GetMembersResponse GetRoleResponse CreateRoleRequest CreateRolesResponse DeleteRoleRequest DeleteRoleResponse GetUserRequest GetUserResponse Role Member User
Index ¶
- Variables
- func RegisterDiscordGatewayHandler(s server.Server, hdlr DiscordGatewayHandler, opts ...server.HandlerOption)
- type CreateRoleRequest
- func (*CreateRoleRequest) Descriptor() ([]byte, []int)
- func (m *CreateRoleRequest) GetColor() int32
- func (m *CreateRoleRequest) GetHoist() bool
- func (m *CreateRoleRequest) GetMentionable() bool
- func (m *CreateRoleRequest) GetName() string
- func (m *CreateRoleRequest) GetPermissions() int32
- func (*CreateRoleRequest) ProtoMessage()
- func (m *CreateRoleRequest) Reset()
- func (m *CreateRoleRequest) String() string
- type CreateRolesResponse
- type DeleteRoleRequest
- type DeleteRoleResponse
- type DiscordGatewayHandler
- type DiscordGatewayService
- type EditRoleRequest
- func (*EditRoleRequest) Descriptor() ([]byte, []int)
- func (m *EditRoleRequest) GetColor() int64
- func (m *EditRoleRequest) GetHoist() bool
- func (m *EditRoleRequest) GetManaged() bool
- func (m *EditRoleRequest) GetMention() bool
- func (m *EditRoleRequest) GetName() string
- func (m *EditRoleRequest) GetPerm() int64
- func (m *EditRoleRequest) GetPosition() int64
- func (*EditRoleRequest) ProtoMessage()
- func (m *EditRoleRequest) Reset()
- func (m *EditRoleRequest) String() string
- type EditRoleResponse
- type GetAllMembersRequest
- type GetMembersResponse
- type GetRoleResponse
- type GetUserRequest
- type GetUserResponse
- type GuildObjectRequest
- type Member
- func (*Member) Descriptor() ([]byte, []int)
- func (m *Member) GetDeaf() bool
- func (m *Member) GetGuildId() string
- func (m *Member) GetJoinedAt() string
- func (m *Member) GetMute() bool
- func (m *Member) GetNick() string
- func (m *Member) GetRoles() []*Role
- func (m *Member) GetUser() *User
- func (*Member) ProtoMessage()
- func (m *Member) Reset()
- func (m *Member) String() string
- type MemberUpdateOperation
- type MockDiscordGatewayClient
- func (_m *MockDiscordGatewayClient) CreateRole(ctx context.Context, in *CreateRoleRequest, opts ...client.CallOption) (*CreateRolesResponse, error)
- func (_m *MockDiscordGatewayClient) DeleteRole(ctx context.Context, in *DeleteRoleRequest, opts ...client.CallOption) (*DeleteRoleResponse, error)
- func (_m *MockDiscordGatewayClient) EXPECT() *_MockDiscordGatewayClientRecorder
- func (_m *MockDiscordGatewayClient) GetAllMembers(ctx context.Context, in *GetAllMembersRequest, opts ...client.CallOption) (*GetMembersResponse, error)
- func (_m *MockDiscordGatewayClient) GetAllRoles(ctx context.Context, in *GuildObjectRequest, opts ...client.CallOption) (*GetRoleResponse, error)
- func (_m *MockDiscordGatewayClient) GetUser(ctx context.Context, in *GetUserRequest, opts ...client.CallOption) (*GetUserResponse, error)
- func (_m *MockDiscordGatewayClient) UpdateMember(ctx context.Context, in *UpdateMemberRequest, opts ...client.CallOption) (*UpdateMemberResponse, error)
- type MockDiscordGatewayHandler
- func (_m *MockDiscordGatewayHandler) CreateRole(_param0 context.Context, _param1 *CreateRoleRequest, ...) error
- func (_m *MockDiscordGatewayHandler) DeleteRole(_param0 context.Context, _param1 *DeleteRoleRequest, ...) error
- func (_m *MockDiscordGatewayHandler) EXPECT() *_MockDiscordGatewayHandlerRecorder
- func (_m *MockDiscordGatewayHandler) GetAllMembers(_param0 context.Context, _param1 *GetAllMembersRequest, ...) error
- func (_m *MockDiscordGatewayHandler) GetAllRoles(_param0 context.Context, _param1 *GuildObjectRequest, _param2 *GetRoleResponse) error
- func (_m *MockDiscordGatewayHandler) GetUser(_param0 context.Context, _param1 *GetUserRequest, _param2 *GetUserResponse) error
- func (_m *MockDiscordGatewayHandler) UpdateMember(_param0 context.Context, _param1 *UpdateMemberRequest, ...) error
- type NilMessage
- type Role
- func (*Role) Descriptor() ([]byte, []int)
- func (m *Role) GetColor() int32
- func (m *Role) GetHoist() bool
- func (m *Role) GetId() string
- func (m *Role) GetManaged() bool
- func (m *Role) GetMembers() []*Member
- func (m *Role) GetMentionable() bool
- func (m *Role) GetName() string
- func (m *Role) GetPermissions() int32
- func (m *Role) GetPosition() int32
- func (*Role) ProtoMessage()
- func (m *Role) Reset()
- func (m *Role) String() string
- type SendMessageRequest
- type UpdateMemberRequest
- func (*UpdateMemberRequest) Descriptor() ([]byte, []int)
- func (m *UpdateMemberRequest) GetOperation() MemberUpdateOperation
- func (m *UpdateMemberRequest) GetRoleIds() []string
- func (m *UpdateMemberRequest) GetUserId() string
- func (*UpdateMemberRequest) ProtoMessage()
- func (m *UpdateMemberRequest) Reset()
- func (m *UpdateMemberRequest) String() string
- type UpdateMemberResponse
- type User
- func (*User) Descriptor() ([]byte, []int)
- func (m *User) GetAvatar() string
- func (m *User) GetBot() bool
- func (m *User) GetDiscriminator() string
- func (m *User) GetEmail() string
- func (m *User) GetId() string
- func (m *User) GetMFAEnabled() bool
- func (m *User) GetNick() string
- func (m *User) GetToken() string
- func (m *User) GetUsername() string
- func (m *User) GetVerified() bool
- func (*User) ProtoMessage()
- func (m *User) Reset()
- func (m *User) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var MemberUpdateOperation_name = map[int32]string{
0: "ADD_OR_UPDATE_ROLES",
1: "REMOVE_ROLES",
}
View Source
var MemberUpdateOperation_value = map[string]int32{
"ADD_OR_UPDATE_ROLES": 0,
"REMOVE_ROLES": 1,
}
Functions ¶
func RegisterDiscordGatewayHandler ¶
func RegisterDiscordGatewayHandler(s server.Server, hdlr DiscordGatewayHandler, opts ...server.HandlerOption)
Types ¶
type CreateRoleRequest ¶
type CreateRoleRequest struct { Name string `protobuf:"bytes,2,opt,name=Name" json:"Name,omitempty"` Color int32 `protobuf:"varint,3,opt,name=Color" json:"Color,omitempty"` Hoist bool `protobuf:"varint,4,opt,name=Hoist" json:"Hoist,omitempty"` Permissions int32 `protobuf:"varint,5,opt,name=Permissions" json:"Permissions,omitempty"` Mentionable bool `protobuf:"varint,6,opt,name=Mentionable" json:"Mentionable,omitempty"` }
func (*CreateRoleRequest) Descriptor ¶
func (*CreateRoleRequest) Descriptor() ([]byte, []int)
func (*CreateRoleRequest) GetColor ¶
func (m *CreateRoleRequest) GetColor() int32
func (*CreateRoleRequest) GetHoist ¶
func (m *CreateRoleRequest) GetHoist() bool
func (*CreateRoleRequest) GetMentionable ¶
func (m *CreateRoleRequest) GetMentionable() bool
func (*CreateRoleRequest) GetName ¶
func (m *CreateRoleRequest) GetName() string
func (*CreateRoleRequest) GetPermissions ¶
func (m *CreateRoleRequest) GetPermissions() int32
func (*CreateRoleRequest) ProtoMessage ¶
func (*CreateRoleRequest) ProtoMessage()
func (*CreateRoleRequest) Reset ¶
func (m *CreateRoleRequest) Reset()
func (*CreateRoleRequest) String ¶
func (m *CreateRoleRequest) String() string
type CreateRolesResponse ¶
type CreateRolesResponse struct {
RoleId string `protobuf:"bytes,1,opt,name=RoleId" json:"RoleId,omitempty"`
}
func (*CreateRolesResponse) Descriptor ¶
func (*CreateRolesResponse) Descriptor() ([]byte, []int)
func (*CreateRolesResponse) GetRoleId ¶
func (m *CreateRolesResponse) GetRoleId() string
func (*CreateRolesResponse) ProtoMessage ¶
func (*CreateRolesResponse) ProtoMessage()
func (*CreateRolesResponse) Reset ¶
func (m *CreateRolesResponse) Reset()
func (*CreateRolesResponse) String ¶
func (m *CreateRolesResponse) String() string
type DeleteRoleRequest ¶
type DeleteRoleRequest struct {
Name string `protobuf:"bytes,1,opt,name=Name" json:"Name,omitempty"`
}
func (*DeleteRoleRequest) Descriptor ¶
func (*DeleteRoleRequest) Descriptor() ([]byte, []int)
func (*DeleteRoleRequest) GetName ¶
func (m *DeleteRoleRequest) GetName() string
func (*DeleteRoleRequest) ProtoMessage ¶
func (*DeleteRoleRequest) ProtoMessage()
func (*DeleteRoleRequest) Reset ¶
func (m *DeleteRoleRequest) Reset()
func (*DeleteRoleRequest) String ¶
func (m *DeleteRoleRequest) String() string
type DeleteRoleResponse ¶
type DeleteRoleResponse struct {
Success bool `protobuf:"varint,1,opt,name=Success" json:"Success,omitempty"`
}
func (*DeleteRoleResponse) Descriptor ¶
func (*DeleteRoleResponse) Descriptor() ([]byte, []int)
func (*DeleteRoleResponse) GetSuccess ¶
func (m *DeleteRoleResponse) GetSuccess() bool
func (*DeleteRoleResponse) ProtoMessage ¶
func (*DeleteRoleResponse) ProtoMessage()
func (*DeleteRoleResponse) Reset ¶
func (m *DeleteRoleResponse) Reset()
func (*DeleteRoleResponse) String ¶
func (m *DeleteRoleResponse) String() string
type DiscordGatewayHandler ¶
type DiscordGatewayHandler interface { UpdateMember(context.Context, *UpdateMemberRequest, *UpdateMemberResponse) error GetAllMembers(context.Context, *GetAllMembersRequest, *GetMembersResponse) error GetAllMembersAsSlice(context.Context, *GetAllMembersRequest, *GetMembersResponse) error GetAllRoles(context.Context, *GuildObjectRequest, *GetRoleResponse) error CreateRole(context.Context, *CreateRoleRequest, *CreateRolesResponse) error DeleteRole(context.Context, *DeleteRoleRequest, *DeleteRoleResponse) error EditRole(context.Context, *EditRoleRequest, *EditRoleResponse) error GetUser(context.Context, *GetUserRequest, *GetUserResponse) error SendMessage(context.Context, *SendMessageRequest, *NilMessage) error }
type DiscordGatewayService ¶
type DiscordGatewayService interface { UpdateMember(ctx context.Context, in *UpdateMemberRequest, opts ...client.CallOption) (*UpdateMemberResponse, error) GetAllMembers(ctx context.Context, in *GetAllMembersRequest, opts ...client.CallOption) (*GetMembersResponse, error) GetAllMembersAsSlice(ctx context.Context, in *GetAllMembersRequest, opts ...client.CallOption) (*GetMembersResponse, error) GetAllRoles(ctx context.Context, in *GuildObjectRequest, opts ...client.CallOption) (*GetRoleResponse, error) CreateRole(ctx context.Context, in *CreateRoleRequest, opts ...client.CallOption) (*CreateRolesResponse, error) DeleteRole(ctx context.Context, in *DeleteRoleRequest, opts ...client.CallOption) (*DeleteRoleResponse, error) EditRole(ctx context.Context, in *EditRoleRequest, opts ...client.CallOption) (*EditRoleResponse, error) GetUser(ctx context.Context, in *GetUserRequest, opts ...client.CallOption) (*GetUserResponse, error) SendMessage(ctx context.Context, in *SendMessageRequest, opts ...client.CallOption) (*NilMessage, error) }
func NewDiscordGatewayService ¶
func NewDiscordGatewayService(name string, c client.Client) DiscordGatewayService
type EditRoleRequest ¶
type EditRoleRequest struct { Name string `protobuf:"bytes,1,opt,name=Name" json:"Name,omitempty"` Color int64 `protobuf:"varint,2,opt,name=Color" json:"Color,omitempty"` Perm int64 `protobuf:"varint,3,opt,name=Perm" json:"Perm,omitempty"` Position int64 `protobuf:"varint,4,opt,name=Position" json:"Position,omitempty"` Hoist bool `protobuf:"varint,5,opt,name=Hoist" json:"Hoist,omitempty"` Mention bool `protobuf:"varint,6,opt,name=Mention" json:"Mention,omitempty"` Managed bool `protobuf:"varint,7,opt,name=Managed" json:"Managed,omitempty"` }
func (*EditRoleRequest) Descriptor ¶
func (*EditRoleRequest) Descriptor() ([]byte, []int)
func (*EditRoleRequest) GetColor ¶
func (m *EditRoleRequest) GetColor() int64
func (*EditRoleRequest) GetHoist ¶
func (m *EditRoleRequest) GetHoist() bool
func (*EditRoleRequest) GetManaged ¶
func (m *EditRoleRequest) GetManaged() bool
func (*EditRoleRequest) GetMention ¶
func (m *EditRoleRequest) GetMention() bool
func (*EditRoleRequest) GetName ¶
func (m *EditRoleRequest) GetName() string
func (*EditRoleRequest) GetPerm ¶
func (m *EditRoleRequest) GetPerm() int64
func (*EditRoleRequest) GetPosition ¶
func (m *EditRoleRequest) GetPosition() int64
func (*EditRoleRequest) ProtoMessage ¶
func (*EditRoleRequest) ProtoMessage()
func (*EditRoleRequest) Reset ¶
func (m *EditRoleRequest) Reset()
func (*EditRoleRequest) String ¶
func (m *EditRoleRequest) String() string
type EditRoleResponse ¶
type EditRoleResponse struct { }
func (*EditRoleResponse) Descriptor ¶
func (*EditRoleResponse) Descriptor() ([]byte, []int)
func (*EditRoleResponse) ProtoMessage ¶
func (*EditRoleResponse) ProtoMessage()
func (*EditRoleResponse) Reset ¶
func (m *EditRoleResponse) Reset()
func (*EditRoleResponse) String ¶
func (m *EditRoleResponse) String() string
type GetAllMembersRequest ¶
type GetAllMembersRequest struct { After string `protobuf:"bytes,2,opt,name=After" json:"After,omitempty"` NumberPerPage int32 `protobuf:"varint,3,opt,name=NumberPerPage" json:"NumberPerPage,omitempty"` }
func (*GetAllMembersRequest) Descriptor ¶
func (*GetAllMembersRequest) Descriptor() ([]byte, []int)
func (*GetAllMembersRequest) GetAfter ¶
func (m *GetAllMembersRequest) GetAfter() string
func (*GetAllMembersRequest) GetNumberPerPage ¶
func (m *GetAllMembersRequest) GetNumberPerPage() int32
func (*GetAllMembersRequest) ProtoMessage ¶
func (*GetAllMembersRequest) ProtoMessage()
func (*GetAllMembersRequest) Reset ¶
func (m *GetAllMembersRequest) Reset()
func (*GetAllMembersRequest) String ¶
func (m *GetAllMembersRequest) String() string
type GetMembersResponse ¶
type GetMembersResponse struct {
Members []*Member `protobuf:"bytes,1,rep,name=Members" json:"Members,omitempty"`
}
func (*GetMembersResponse) Descriptor ¶
func (*GetMembersResponse) Descriptor() ([]byte, []int)
func (*GetMembersResponse) GetMembers ¶
func (m *GetMembersResponse) GetMembers() []*Member
func (*GetMembersResponse) ProtoMessage ¶
func (*GetMembersResponse) ProtoMessage()
func (*GetMembersResponse) Reset ¶
func (m *GetMembersResponse) Reset()
func (*GetMembersResponse) String ¶
func (m *GetMembersResponse) String() string
type GetRoleResponse ¶
type GetRoleResponse struct {
Roles []*Role `protobuf:"bytes,1,rep,name=Roles" json:"Roles,omitempty"`
}
func (*GetRoleResponse) Descriptor ¶
func (*GetRoleResponse) Descriptor() ([]byte, []int)
func (*GetRoleResponse) GetRoles ¶
func (m *GetRoleResponse) GetRoles() []*Role
func (*GetRoleResponse) ProtoMessage ¶
func (*GetRoleResponse) ProtoMessage()
func (*GetRoleResponse) Reset ¶
func (m *GetRoleResponse) Reset()
func (*GetRoleResponse) String ¶
func (m *GetRoleResponse) String() string
type GetUserRequest ¶
type GetUserRequest struct {
UserId string `protobuf:"bytes,1,opt,name=UserId" json:"UserId,omitempty"`
}
func (*GetUserRequest) Descriptor ¶
func (*GetUserRequest) Descriptor() ([]byte, []int)
func (*GetUserRequest) GetUserId ¶
func (m *GetUserRequest) GetUserId() string
func (*GetUserRequest) ProtoMessage ¶
func (*GetUserRequest) ProtoMessage()
func (*GetUserRequest) Reset ¶
func (m *GetUserRequest) Reset()
func (*GetUserRequest) String ¶
func (m *GetUserRequest) String() string
type GetUserResponse ¶
type GetUserResponse struct {
User *User `protobuf:"bytes,1,opt,name=User" json:"User,omitempty"`
}
func (*GetUserResponse) Descriptor ¶
func (*GetUserResponse) Descriptor() ([]byte, []int)
func (*GetUserResponse) GetUser ¶
func (m *GetUserResponse) GetUser() *User
func (*GetUserResponse) ProtoMessage ¶
func (*GetUserResponse) ProtoMessage()
func (*GetUserResponse) Reset ¶
func (m *GetUserResponse) Reset()
func (*GetUserResponse) String ¶
func (m *GetUserResponse) String() string
type GuildObjectRequest ¶
type GuildObjectRequest struct { }
func (*GuildObjectRequest) Descriptor ¶
func (*GuildObjectRequest) Descriptor() ([]byte, []int)
func (*GuildObjectRequest) ProtoMessage ¶
func (*GuildObjectRequest) ProtoMessage()
func (*GuildObjectRequest) Reset ¶
func (m *GuildObjectRequest) Reset()
func (*GuildObjectRequest) String ¶
func (m *GuildObjectRequest) String() string
type Member ¶
type Member struct { GuildId string `protobuf:"bytes,1,opt,name=GuildId" json:"GuildId,omitempty"` JoinedAt string `protobuf:"bytes,2,opt,name=JoinedAt" json:"JoinedAt,omitempty"` Nick string `protobuf:"bytes,3,opt,name=Nick" json:"Nick,omitempty"` Deaf bool `protobuf:"varint,4,opt,name=Deaf" json:"Deaf,omitempty"` Mute bool `protobuf:"varint,5,opt,name=Mute" json:"Mute,omitempty"` User *User `protobuf:"bytes,6,opt,name=User" json:"User,omitempty"` Roles []*Role `protobuf:"bytes,7,rep,name=Roles" json:"Roles,omitempty"` }
func (*Member) Descriptor ¶
func (*Member) GetGuildId ¶
func (*Member) GetJoinedAt ¶
func (*Member) ProtoMessage ¶
func (*Member) ProtoMessage()
type MemberUpdateOperation ¶
type MemberUpdateOperation int32
const ( MemberUpdateOperation_ADD_OR_UPDATE_ROLES MemberUpdateOperation = 0 MemberUpdateOperation_REMOVE_ROLES MemberUpdateOperation = 1 )
func (MemberUpdateOperation) EnumDescriptor ¶
func (MemberUpdateOperation) EnumDescriptor() ([]byte, []int)
func (MemberUpdateOperation) String ¶
func (x MemberUpdateOperation) String() string
type MockDiscordGatewayClient ¶
type MockDiscordGatewayClient struct {
// contains filtered or unexported fields
}
Mock of DiscordGatewayClient interface
func NewMockDiscordGatewayClient ¶
func NewMockDiscordGatewayClient(ctrl *gomock.Controller) *MockDiscordGatewayClient
func (*MockDiscordGatewayClient) CreateRole ¶
func (_m *MockDiscordGatewayClient) CreateRole(ctx context.Context, in *CreateRoleRequest, opts ...client.CallOption) (*CreateRolesResponse, error)
func (*MockDiscordGatewayClient) DeleteRole ¶
func (_m *MockDiscordGatewayClient) DeleteRole(ctx context.Context, in *DeleteRoleRequest, opts ...client.CallOption) (*DeleteRoleResponse, error)
func (*MockDiscordGatewayClient) EXPECT ¶
func (_m *MockDiscordGatewayClient) EXPECT() *_MockDiscordGatewayClientRecorder
func (*MockDiscordGatewayClient) GetAllMembers ¶
func (_m *MockDiscordGatewayClient) GetAllMembers(ctx context.Context, in *GetAllMembersRequest, opts ...client.CallOption) (*GetMembersResponse, error)
func (*MockDiscordGatewayClient) GetAllRoles ¶
func (_m *MockDiscordGatewayClient) GetAllRoles(ctx context.Context, in *GuildObjectRequest, opts ...client.CallOption) (*GetRoleResponse, error)
func (*MockDiscordGatewayClient) GetUser ¶
func (_m *MockDiscordGatewayClient) GetUser(ctx context.Context, in *GetUserRequest, opts ...client.CallOption) (*GetUserResponse, error)
func (*MockDiscordGatewayClient) UpdateMember ¶
func (_m *MockDiscordGatewayClient) UpdateMember(ctx context.Context, in *UpdateMemberRequest, opts ...client.CallOption) (*UpdateMemberResponse, error)
type MockDiscordGatewayHandler ¶
type MockDiscordGatewayHandler struct {
// contains filtered or unexported fields
}
Mock of DiscordGatewayHandler interface
func NewMockDiscordGatewayHandler ¶
func NewMockDiscordGatewayHandler(ctrl *gomock.Controller) *MockDiscordGatewayHandler
func (*MockDiscordGatewayHandler) CreateRole ¶
func (_m *MockDiscordGatewayHandler) CreateRole(_param0 context.Context, _param1 *CreateRoleRequest, _param2 *CreateRolesResponse) error
func (*MockDiscordGatewayHandler) DeleteRole ¶
func (_m *MockDiscordGatewayHandler) DeleteRole(_param0 context.Context, _param1 *DeleteRoleRequest, _param2 *DeleteRoleResponse) error
func (*MockDiscordGatewayHandler) EXPECT ¶
func (_m *MockDiscordGatewayHandler) EXPECT() *_MockDiscordGatewayHandlerRecorder
func (*MockDiscordGatewayHandler) GetAllMembers ¶
func (_m *MockDiscordGatewayHandler) GetAllMembers(_param0 context.Context, _param1 *GetAllMembersRequest, _param2 *GetMembersResponse) error
func (*MockDiscordGatewayHandler) GetAllRoles ¶
func (_m *MockDiscordGatewayHandler) GetAllRoles(_param0 context.Context, _param1 *GuildObjectRequest, _param2 *GetRoleResponse) error
func (*MockDiscordGatewayHandler) GetUser ¶
func (_m *MockDiscordGatewayHandler) GetUser(_param0 context.Context, _param1 *GetUserRequest, _param2 *GetUserResponse) error
func (*MockDiscordGatewayHandler) UpdateMember ¶
func (_m *MockDiscordGatewayHandler) UpdateMember(_param0 context.Context, _param1 *UpdateMemberRequest, _param2 *UpdateMemberResponse) error
type NilMessage ¶
type NilMessage struct { }
func (*NilMessage) Descriptor ¶
func (*NilMessage) Descriptor() ([]byte, []int)
func (*NilMessage) ProtoMessage ¶
func (*NilMessage) ProtoMessage()
func (*NilMessage) Reset ¶
func (m *NilMessage) Reset()
func (*NilMessage) String ¶
func (m *NilMessage) String() string
type Role ¶
type Role struct { Id string `protobuf:"bytes,1,opt,name=Id" json:"Id,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name" json:"Name,omitempty"` Managed bool `protobuf:"varint,3,opt,name=Managed" json:"Managed,omitempty"` Mentionable bool `protobuf:"varint,4,opt,name=Mentionable" json:"Mentionable,omitempty"` Hoist bool `protobuf:"varint,5,opt,name=Hoist" json:"Hoist,omitempty"` Color int32 `protobuf:"varint,6,opt,name=Color" json:"Color,omitempty"` Position int32 `protobuf:"varint,7,opt,name=Position" json:"Position,omitempty"` Permissions int32 `protobuf:"varint,8,opt,name=Permissions" json:"Permissions,omitempty"` Members []*Member `protobuf:"bytes,9,rep,name=Members" json:"Members,omitempty"` }
func (*Role) Descriptor ¶
func (*Role) GetManaged ¶
func (*Role) GetMembers ¶
func (*Role) GetMentionable ¶
func (*Role) GetPermissions ¶
func (*Role) GetPosition ¶
func (*Role) ProtoMessage ¶
func (*Role) ProtoMessage()
type SendMessageRequest ¶
type SendMessageRequest struct { ChannelId string `protobuf:"bytes,1,opt,name=channelId" json:"channelId,omitempty"` Message string `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"` }
func (*SendMessageRequest) Descriptor ¶
func (*SendMessageRequest) Descriptor() ([]byte, []int)
func (*SendMessageRequest) GetChannelId ¶
func (m *SendMessageRequest) GetChannelId() string
func (*SendMessageRequest) GetMessage ¶
func (m *SendMessageRequest) GetMessage() string
func (*SendMessageRequest) ProtoMessage ¶
func (*SendMessageRequest) ProtoMessage()
func (*SendMessageRequest) Reset ¶
func (m *SendMessageRequest) Reset()
func (*SendMessageRequest) String ¶
func (m *SendMessageRequest) String() string
type UpdateMemberRequest ¶
type UpdateMemberRequest struct { Operation MemberUpdateOperation `protobuf:"varint,2,opt,name=Operation,enum=discord.gateway.MemberUpdateOperation" json:"Operation,omitempty"` UserId string `protobuf:"bytes,3,opt,name=UserId" json:"UserId,omitempty"` RoleIds []string `protobuf:"bytes,4,rep,name=RoleIds" json:"RoleIds,omitempty"` }
func (*UpdateMemberRequest) Descriptor ¶
func (*UpdateMemberRequest) Descriptor() ([]byte, []int)
func (*UpdateMemberRequest) GetOperation ¶
func (m *UpdateMemberRequest) GetOperation() MemberUpdateOperation
func (*UpdateMemberRequest) GetRoleIds ¶
func (m *UpdateMemberRequest) GetRoleIds() []string
func (*UpdateMemberRequest) GetUserId ¶
func (m *UpdateMemberRequest) GetUserId() string
func (*UpdateMemberRequest) ProtoMessage ¶
func (*UpdateMemberRequest) ProtoMessage()
func (*UpdateMemberRequest) Reset ¶
func (m *UpdateMemberRequest) Reset()
func (*UpdateMemberRequest) String ¶
func (m *UpdateMemberRequest) String() string
type UpdateMemberResponse ¶
type UpdateMemberResponse struct { Success bool `protobuf:"varint,1,opt,name=Success" json:"Success,omitempty"` Message string `protobuf:"bytes,2,opt,name=Message" json:"Message,omitempty"` }
func (*UpdateMemberResponse) Descriptor ¶
func (*UpdateMemberResponse) Descriptor() ([]byte, []int)
func (*UpdateMemberResponse) GetMessage ¶
func (m *UpdateMemberResponse) GetMessage() string
func (*UpdateMemberResponse) GetSuccess ¶
func (m *UpdateMemberResponse) GetSuccess() bool
func (*UpdateMemberResponse) ProtoMessage ¶
func (*UpdateMemberResponse) ProtoMessage()
func (*UpdateMemberResponse) Reset ¶
func (m *UpdateMemberResponse) Reset()
func (*UpdateMemberResponse) String ¶
func (m *UpdateMemberResponse) String() string
type User ¶
type User struct { Id string `protobuf:"bytes,1,opt,name=Id" json:"Id,omitempty"` Email string `protobuf:"bytes,2,opt,name=Email" json:"Email,omitempty"` Username string `protobuf:"bytes,3,opt,name=Username" json:"Username,omitempty"` Avatar string `protobuf:"bytes,4,opt,name=Avatar" json:"Avatar,omitempty"` Discriminator string `protobuf:"bytes,5,opt,name=Discriminator" json:"Discriminator,omitempty"` Token string `protobuf:"bytes,6,opt,name=Token" json:"Token,omitempty"` Verified bool `protobuf:"varint,7,opt,name=Verified" json:"Verified,omitempty"` MFAEnabled bool `protobuf:"varint,8,opt,name=MFAEnabled" json:"MFAEnabled,omitempty"` Bot bool `protobuf:"varint,9,opt,name=Bot" json:"Bot,omitempty"` Nick string `protobuf:"bytes,10,opt,name=Nick" json:"Nick,omitempty"` }
func (*User) Descriptor ¶
func (*User) GetDiscriminator ¶
func (*User) GetMFAEnabled ¶
func (*User) GetUsername ¶
func (*User) GetVerified ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.