shared

package
v1.9.3 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2020 License: MIT Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RoleypolySession_SessionSource_name = map[int32]string{
		0: "UNKNOWN",
		1: "OAUTH",
		2: "DM",
	}
	RoleypolySession_SessionSource_value = map[string]int32{
		"UNKNOWN": 0,
		"OAUTH":   1,
		"DM":      2,
	}
)

Enum value maps for RoleypolySession_SessionSource.

View Source
var (
	Role_RoleSafety_name = map[int32]string{
		0: "safe",
		1: "higherThanBot",
		2: "dangerousPermissions",
	}
	Role_RoleSafety_value = map[string]int32{
		"safe":                 0,
		"higherThanBot":        1,
		"dangerousPermissions": 2,
	}
)

Enum value maps for Role_RoleSafety.

View Source
var File_shared_internal_proto protoreflect.FileDescriptor
View Source
var File_shared_shared_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type DiscordUser added in v1.2.1

type DiscordUser struct {
	ID            string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Username      string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	Discriminator string `protobuf:"bytes,3,opt,name=discriminator,proto3" json:"discriminator,omitempty"`
	Avatar        string `protobuf:"bytes,4,opt,name=avatar,proto3" json:"avatar,omitempty"`
	Bot           bool   `protobuf:"varint,5,opt,name=bot,proto3" json:"bot,omitempty"`
	// contains filtered or unexported fields
}

func (*DiscordUser) Descriptor deprecated added in v1.2.1

func (*DiscordUser) Descriptor() ([]byte, []int)

Deprecated: Use DiscordUser.ProtoReflect.Descriptor instead.

func (*DiscordUser) GetAvatar added in v1.2.1

func (x *DiscordUser) GetAvatar() string

func (*DiscordUser) GetBot added in v1.2.1

func (x *DiscordUser) GetBot() bool

func (*DiscordUser) GetDiscriminator added in v1.2.1

func (x *DiscordUser) GetDiscriminator() string

func (*DiscordUser) GetID added in v1.2.1

func (x *DiscordUser) GetID() string

func (*DiscordUser) GetUsername added in v1.2.1

func (x *DiscordUser) GetUsername() string

func (*DiscordUser) ProtoMessage added in v1.2.1

func (*DiscordUser) ProtoMessage()

func (*DiscordUser) ProtoReflect added in v1.9.0

func (x *DiscordUser) ProtoReflect() protoreflect.Message

func (*DiscordUser) Reset added in v1.2.1

func (x *DiscordUser) Reset()

func (*DiscordUser) String added in v1.2.1

func (x *DiscordUser) String() string

type Guild

type Guild struct {
	ID          string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Name        string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Icon        string `protobuf:"bytes,3,opt,name=icon,proto3" json:"icon,omitempty"`
	OwnerID     string `protobuf:"bytes,4,opt,name=ownerID,proto3" json:"ownerID,omitempty"`
	MemberCount int32  `protobuf:"varint,5,opt,name=memberCount,proto3" json:"memberCount,omitempty"`
	Splash      string `protobuf:"bytes,6,opt,name=splash,proto3" json:"splash,omitempty"`
	// contains filtered or unexported fields
}

func (*Guild) Descriptor deprecated

func (*Guild) Descriptor() ([]byte, []int)

Deprecated: Use Guild.ProtoReflect.Descriptor instead.

func (*Guild) GetID

func (x *Guild) GetID() string

func (*Guild) GetIcon

func (x *Guild) GetIcon() string

func (*Guild) GetMemberCount

func (x *Guild) GetMemberCount() int32

func (*Guild) GetName

func (x *Guild) GetName() string

func (*Guild) GetOwnerID

func (x *Guild) GetOwnerID() string

func (*Guild) GetSplash

func (x *Guild) GetSplash() string

func (*Guild) ProtoMessage

func (*Guild) ProtoMessage()

func (*Guild) ProtoReflect added in v1.9.0

func (x *Guild) ProtoReflect() protoreflect.Message

func (*Guild) Reset

func (x *Guild) Reset()

func (*Guild) String

func (x *Guild) String() string

type GuildList

type GuildList struct {
	Guilds []*Guild `protobuf:"bytes,1,rep,name=guilds,proto3" json:"guilds,omitempty"`
	// contains filtered or unexported fields
}

func (*GuildList) Descriptor deprecated

func (*GuildList) Descriptor() ([]byte, []int)

Deprecated: Use GuildList.ProtoReflect.Descriptor instead.

func (*GuildList) GetGuilds

func (x *GuildList) GetGuilds() []*Guild

func (*GuildList) ProtoMessage

func (*GuildList) ProtoMessage()

func (*GuildList) ProtoReflect added in v1.9.0

func (x *GuildList) ProtoReflect() protoreflect.Message

func (*GuildList) Reset

func (x *GuildList) Reset()

func (*GuildList) String

func (x *GuildList) String() string

type GuildRoles

type GuildRoles struct {
	ID    string  `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Roles []*Role `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"`
	// contains filtered or unexported fields
}

func (*GuildRoles) Descriptor deprecated

func (*GuildRoles) Descriptor() ([]byte, []int)

Deprecated: Use GuildRoles.ProtoReflect.Descriptor instead.

func (*GuildRoles) GetID

func (x *GuildRoles) GetID() string

func (*GuildRoles) GetRoles

func (x *GuildRoles) GetRoles() []*Role

func (*GuildRoles) ProtoMessage

func (*GuildRoles) ProtoMessage()

func (*GuildRoles) ProtoReflect added in v1.9.0

func (x *GuildRoles) ProtoReflect() protoreflect.Message

func (*GuildRoles) Reset

func (x *GuildRoles) Reset()

func (*GuildRoles) String

func (x *GuildRoles) String() string

type IDQuery

type IDQuery struct {
	MemberID string `protobuf:"bytes,1,opt,name=MemberID,proto3" json:"MemberID,omitempty"`
	GuildID  string `protobuf:"bytes,2,opt,name=GuildID,proto3" json:"GuildID,omitempty"`
	// contains filtered or unexported fields
}

func (*IDQuery) Descriptor deprecated

func (*IDQuery) Descriptor() ([]byte, []int)

Deprecated: Use IDQuery.ProtoReflect.Descriptor instead.

func (*IDQuery) GetGuildID

func (x *IDQuery) GetGuildID() string

func (*IDQuery) GetMemberID

func (x *IDQuery) GetMemberID() string

func (*IDQuery) ProtoMessage

func (*IDQuery) ProtoMessage()

func (*IDQuery) ProtoReflect added in v1.9.0

func (x *IDQuery) ProtoReflect() protoreflect.Message

func (*IDQuery) Reset

func (x *IDQuery) Reset()

func (*IDQuery) String

func (x *IDQuery) String() string

type Role

type Role struct {
	ID          string          `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Name        string          `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Permissions int64           `protobuf:"varint,3,opt,name=permissions,proto3" json:"permissions,omitempty"`
	Color       int32           `protobuf:"varint,4,opt,name=color,proto3" json:"color,omitempty"`
	Position    int32           `protobuf:"varint,5,opt,name=position,proto3" json:"position,omitempty"`
	Managed     bool            `protobuf:"varint,6,opt,name=managed,proto3" json:"managed,omitempty"`
	Safety      Role_RoleSafety `protobuf:"varint,7,opt,name=safety,proto3,enum=roleypoly.Role_RoleSafety" json:"safety,omitempty"`
	// contains filtered or unexported fields
}

func (*Role) Descriptor deprecated

func (*Role) Descriptor() ([]byte, []int)

Deprecated: Use Role.ProtoReflect.Descriptor instead.

func (*Role) GetColor

func (x *Role) GetColor() int32

func (*Role) GetID

func (x *Role) GetID() string

func (*Role) GetManaged

func (x *Role) GetManaged() bool

func (*Role) GetName

func (x *Role) GetName() string

func (*Role) GetPermissions

func (x *Role) GetPermissions() int64

func (*Role) GetPosition

func (x *Role) GetPosition() int32

func (*Role) GetSafety added in v1.2.2

func (x *Role) GetSafety() Role_RoleSafety

func (*Role) ProtoMessage

func (*Role) ProtoMessage()

func (*Role) ProtoReflect added in v1.9.0

func (x *Role) ProtoReflect() protoreflect.Message

func (*Role) Reset

func (x *Role) Reset()

func (*Role) String

func (x *Role) String() string

type Role_RoleSafety added in v1.2.2

type Role_RoleSafety int32
const (
	Role_safe                 Role_RoleSafety = 0
	Role_higherThanBot        Role_RoleSafety = 1
	Role_dangerousPermissions Role_RoleSafety = 2
)

func (Role_RoleSafety) Descriptor added in v1.9.0

func (Role_RoleSafety) Enum added in v1.9.0

func (x Role_RoleSafety) Enum() *Role_RoleSafety

func (Role_RoleSafety) EnumDescriptor deprecated added in v1.2.2

func (Role_RoleSafety) EnumDescriptor() ([]byte, []int)

Deprecated: Use Role_RoleSafety.Descriptor instead.

func (Role_RoleSafety) Number added in v1.9.0

func (Role_RoleSafety) String added in v1.2.2

func (x Role_RoleSafety) String() string

func (Role_RoleSafety) Type added in v1.9.0

type RoleypolySession

type RoleypolySession struct {
	ID        string                         `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	User      *RoleypolyUser                 `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
	Source    RoleypolySession_SessionSource `protobuf:"varint,3,opt,name=source,proto3,enum=roleypoly.RoleypolySession_SessionSource" json:"source,omitempty"`
	CreatedAt int64                          `protobuf:"varint,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	ExpiresIn int64                          `protobuf:"varint,5,opt,name=expires_in,json=expiresIn,proto3" json:"expires_in,omitempty"`
	Extra     map[string]string              `` /* 151-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*RoleypolySession) Descriptor deprecated

func (*RoleypolySession) Descriptor() ([]byte, []int)

Deprecated: Use RoleypolySession.ProtoReflect.Descriptor instead.

func (*RoleypolySession) GetCreatedAt

func (x *RoleypolySession) GetCreatedAt() int64

func (*RoleypolySession) GetExpiresIn

func (x *RoleypolySession) GetExpiresIn() int64

func (*RoleypolySession) GetExtra

func (x *RoleypolySession) GetExtra() map[string]string

func (*RoleypolySession) GetID added in v1.3.0

func (x *RoleypolySession) GetID() string

func (*RoleypolySession) GetSource

func (*RoleypolySession) GetUser

func (x *RoleypolySession) GetUser() *RoleypolyUser

func (*RoleypolySession) ProtoMessage

func (*RoleypolySession) ProtoMessage()

func (*RoleypolySession) ProtoReflect added in v1.9.0

func (x *RoleypolySession) ProtoReflect() protoreflect.Message

func (*RoleypolySession) Reset

func (x *RoleypolySession) Reset()

func (*RoleypolySession) String

func (x *RoleypolySession) String() string

type RoleypolySession_SessionSource

type RoleypolySession_SessionSource int32
const (
	RoleypolySession_UNKNOWN RoleypolySession_SessionSource = 0
	RoleypolySession_OAUTH   RoleypolySession_SessionSource = 1
	RoleypolySession_DM      RoleypolySession_SessionSource = 2
)

func (RoleypolySession_SessionSource) Descriptor added in v1.9.0

func (RoleypolySession_SessionSource) Enum added in v1.9.0

func (RoleypolySession_SessionSource) EnumDescriptor deprecated

func (RoleypolySession_SessionSource) EnumDescriptor() ([]byte, []int)

Deprecated: Use RoleypolySession_SessionSource.Descriptor instead.

func (RoleypolySession_SessionSource) Number added in v1.9.0

func (RoleypolySession_SessionSource) String

func (RoleypolySession_SessionSource) Type added in v1.9.0

type RoleypolyUser

type RoleypolyUser struct {
	DiscordUser *DiscordUser `protobuf:"bytes,1,opt,name=discordUser,proto3" json:"discordUser,omitempty"`
	// contains filtered or unexported fields
}

func (*RoleypolyUser) Descriptor deprecated

func (*RoleypolyUser) Descriptor() ([]byte, []int)

Deprecated: Use RoleypolyUser.ProtoReflect.Descriptor instead.

func (*RoleypolyUser) GetDiscordUser

func (x *RoleypolyUser) GetDiscordUser() *DiscordUser

func (*RoleypolyUser) ProtoMessage

func (*RoleypolyUser) ProtoMessage()

func (*RoleypolyUser) ProtoReflect added in v1.9.0

func (x *RoleypolyUser) ProtoReflect() protoreflect.Message

func (*RoleypolyUser) Reset

func (x *RoleypolyUser) Reset()

func (*RoleypolyUser) String

func (x *RoleypolyUser) String() string

Jump to

Keyboard shortcuts

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