Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PermissionBit ¶
type PermissionBit uint64
const ( CreateInstantInvite PermissionBit = 1 << iota KickMembers BanMembers Administrator ManageChannels ManageGuild AddReactions ViewAuditLog PrioritySpeaker Stream ViewChannel SendMessages SendTTSMessages ManageMessages EmbedLinks AttachFiles ReadMessageHistory MentionEveryone UseExternalEmojis ViewGuildInsights Connect Speak MuteMembers DeafenMembers MoveMembers UseVAD ChangeNickname ManageNicknames ManageRoles ManageWebhooks ManageEmojisAndStickers UseApplicationCommands RequestToSpeak ManageEvents ManageThreads CreatePublicThreads CreatePrivateThreads UseExternalStickers SendMessagesInThreads StartEmbeddedActivities ModerateMembers )
func (PermissionBit) Has ¶
func (p PermissionBit) Has(bits PermissionBit) bool
func (PermissionBit) HasOrAdmin ¶
func (p PermissionBit) HasOrAdmin(bits PermissionBit) bool
func (*PermissionBit) MarshalJSON ¶
func (p *PermissionBit) MarshalJSON() ([]byte, error)
func (PermissionBit) String ¶
func (i PermissionBit) String() string
func (*PermissionBit) UnmarshalJSON ¶
func (p *PermissionBit) UnmarshalJSON(bytes []byte) error
Click to show internal directories.
Click to hide internal directories.