Versions in this module Expand all Collapse all v0 v0.2.0 Sep 2, 2018 Changes in this version + const AddReactionsPermission + const AdministratorPermission + const AllChannelPermission + const AllPermission + const AllTextPermission + const AllVoicePermission + const AttachFilesPermission + const AuditLogChangeKeyAFKChannelID + const AuditLogChangeKeyAFKTimeout + const AuditLogChangeKeyAdd + const AuditLogChangeKeyAllow + const AuditLogChangeKeyApplicationID + const AuditLogChangeKeyAvatarHash + const AuditLogChangeKeyBitrate + const AuditLogChangeKeyChannelID + const AuditLogChangeKeyCode + const AuditLogChangeKeyColor + const AuditLogChangeKeyDeaf + const AuditLogChangeKeyDefaultMessageNotifications + const AuditLogChangeKeyDeny + const AuditLogChangeKeyExplicitContentFilter + const AuditLogChangeKeyHoist + const AuditLogChangeKeyID + const AuditLogChangeKeyIconHash + const AuditLogChangeKeyInviterID + const AuditLogChangeKeyMFALevel + const AuditLogChangeKeyMaxAge + const AuditLogChangeKeyMaxUses + const AuditLogChangeKeyMentionable + const AuditLogChangeKeyMute + const AuditLogChangeKeyNSFW + const AuditLogChangeKeyName + const AuditLogChangeKeyNick + const AuditLogChangeKeyOwnerID + const AuditLogChangeKeyPermissionOverwrites + const AuditLogChangeKeyPermissions + const AuditLogChangeKeyPosition + const AuditLogChangeKeyPruneDeleteDays + const AuditLogChangeKeyRegion + const AuditLogChangeKeyRemove + const AuditLogChangeKeySplashHash + const AuditLogChangeKeyTemporary + const AuditLogChangeKeyTopic + const AuditLogChangeKeyType + const AuditLogChangeKeyUses + const AuditLogChangeKeyVanityURLCode + const AuditLogChangeKeyVerificationLevel + const AuditLogChangeKeyWidgetChannelID + const AuditLogChangeKeyWidgetEnabled + const AuditLogEvtChannelCreate + const AuditLogEvtChannelDelete + const AuditLogEvtChannelUpdate + const AuditLogEvtEmojiCreate + const AuditLogEvtEmojiDelete + const AuditLogEvtEmojiUpdate + const AuditLogEvtGuildUpdate + const AuditLogEvtInviteCreate + const AuditLogEvtInviteDelete + const AuditLogEvtInviteUpdate + const AuditLogEvtMemberBanAdd + const AuditLogEvtMemberBanRemove + const AuditLogEvtMemberKick + const AuditLogEvtMemberPrune + const AuditLogEvtMemberRoleUpdate + const AuditLogEvtMemberUpdate + const AuditLogEvtMessageDelete + const AuditLogEvtOverwriteCreate + const AuditLogEvtOverwriteDelete + const AuditLogEvtOverwriteUpdate + const AuditLogEvtRoleCreate + const AuditLogEvtRoleDelete + const AuditLogEvtRoleUpdate + const AuditLogEvtWebhookCreate + const AuditLogEvtWebhookDelete + const AuditLogEvtWebhookUpdate + const BanMembersPermission + const ChangeNicknamePermission + const ChannelTypeDM + const ChannelTypeGroupDM + const ChannelTypeGuildCategory + const ChannelTypeGuildText + const ChannelTypeGuildVoice + const CreateInstantInvitePermission + const EmbedLinksPermission + const EndpointGuild + const KickMembersPermission + const ManageChannelsPermission + const ManageEmojisPermission + const ManageMessagesPermission + const ManageNicknamesPermission + const ManageRolesPermission + const ManageServerPermission + const ManageWebhooksPermission + const MentionEveryonePermission + const MessageActivityTypeJoin + const MessageActivityTypeJoinRequest + const MessageActivityTypeListen + const MessageActivityTypeSpectate + const MessageTypeCall + const MessageTypeChannelIconChange + const MessageTypeChannelNameChange + const MessageTypeChannelPinnedMessage + const MessageTypeDefault + const MessageTypeGuildMemberJoin + const MessageTypeRecipientAdd + const MessageTypeRecipientRemove + const ReadMessageHistoryPermission + const ReadMessagesPermission + const SendMessagesPermission + const SendTTSMessagesPermission + const StatusDnd + const StatusIdle + const StatusOffline + const StatusOnline + const UseExternalEmojisPermission + const ViewAuditLogsPermission + const VoiceConnectPermission + const VoiceDeafenMembersPermission + const VoiceMoveMembersPermission + const VoiceMuteMembersPermission + const VoiceSpeakPermission + const VoiceUseVADPermission + type Attachment struct + Filename string + Height uint + ID Snowflake + ProxyURL string + Size uint + URL string + Width uint + type AuditLog struct + AuditLogEntries []*AuditLogEntry + Users []*User + Webhooks []*Webhook + type AuditLogChange struct + Key string + NewValue interface{} + OldValue interface{} + type AuditLogEntry struct + ActionType uint + Changes []*AuditLogChange + ID Snowflake + Options []*AuditLogOption + Reason string + TargetID Snowflake + UserID Snowflake + type AuditLogOption struct + ChannelID Snowflake + Count string + DeleteMemberDays string + ID Snowflake + MembersRemoved string + RoleName string + Type string + type Ban struct + Reason string + User *User + type Channel struct + ApplicationID Snowflake + Bitrate uint + GuildID Snowflake + ID Snowflake + Icon string + LastMessageID Snowflake + LastPingTimestamp Timestamp + NSFW bool + Name string + OwnerID Snowflake + ParentID Snowflake + PermissionOverwrites []PermissionOverwrite + Position uint + Recipients []*User + Topic string + Type uint + UserLimit uint + func NewChannel() *Channel + func (c *Channel) Clear() + func (c *Channel) Compare(other *Channel) bool + func (c *Channel) Create() + func (c *Channel) DeepCopy() *Channel + func (c *Channel) Delete() + func (c *Channel) Mention() string + func (c *Channel) Replicate(channel *Channel, recipients []*User) + func (c *Channel) SendMsg(client ChannelMessager, msg *Message) (err error) + func (c *Channel) SendMsgStr(client ChannelMessager, msgStr string) (msg *Message, err error) + func (c *Channel) Update() + type ChannelEmbed struct + Author *ChannelEmbedAuthor + Color int + Description string + Fields []*ChannelEmbedField + Footer *ChannelEmbedFooter + Image *ChannelEmbedImage + Provider *ChannelEmbedProvider + Thumbnail *ChannelEmbedThumbnail + Timestamp time.Time + Title string + Type string + URL string + Video *ChannelEmbedVideo + type ChannelEmbedAuthor struct + IconUrl string + Name string + ProxyIconUrl string + Url string + type ChannelEmbedField struct + Inline bool + Name string + Value string + type ChannelEmbedFooter struct + IconUrl string + ProxyIconUrl string + Text string + type ChannelEmbedImage struct + Height int + ProxyUrl string + Url string + Width int + type ChannelEmbedProvider struct + Name string + Url string + type ChannelEmbedThumbnail struct + Height int + ProxyUrl string + Url string + Width int + type ChannelEmbedVideo struct + Height int + Url string + Width int + type ChannelMessager interface + CreateMessage func(*Message) error + type DefaultMessageNotificationLvl uint + func (dmnl *DefaultMessageNotificationLvl) AllMessages() bool + func (dmnl *DefaultMessageNotificationLvl) Equals(v uint) bool + func (dmnl *DefaultMessageNotificationLvl) OnlyMentions() bool + type DeletedMessage struct + ChannelID Snowflake + ID Snowflake + func NewDeletedMessage() *DeletedMessage + type Emoji struct + Animated bool + ID Snowflake + Managed bool + Name string + RequireColons bool + Roles []Snowflake + User *User + func (e *Emoji) Clear() + func (e *Emoji) Mention() string + func (e *Emoji) MentionAnimated() string + type ExplicitContentFilterLvl uint + func (ecfl *ExplicitContentFilterLvl) AllMembers() bool + func (ecfl *ExplicitContentFilterLvl) Disabled() bool + func (ecfl *ExplicitContentFilterLvl) MembersWithoutRoles() bool + type Guild struct + AfkChannelID *Snowflake + AfkTimeout uint + ApplicationID *Snowflake + Channels []*Channel + DefaultMessageNotifications DefaultMessageNotificationLvl + EmbedChannelID Snowflake + EmbedEnabled bool + Emojis []*Emoji + ExplicitContentFilter ExplicitContentFilterLvl + Features []string + ID Snowflake + Icon *string + JoinedAt *Timestamp + Large bool + MFALevel MFALvl + MemberCount uint + Members []*Member + Name string + Owner bool + OwnerID Snowflake + Permissions uint64 + Presences []*UserPresence + PresencesMutex sync.RWMutex + Region string + Roles []*Role + Splash *string + SystemChannelID *Snowflake + Unavailable bool + VerificationLevel VerificationLvl + VoiceStates []*VoiceState + WidgetChannelID Snowflake + WidgetEnabled bool + func NewGuild() *Guild + func NewGuildFromJSON(data []byte) *Guild + func NewGuildFromUnavailable(gu *GuildUnavailable) *Guild + func NewPartialGuild(ID Snowflake) *Guild + func (g *Guild) AddChannel(c *Channel) error + func (g *Guild) AddMember(member *Member) error + func (g *Guild) AddRole(role *Role) error + func (g *Guild) Channel(id Snowflake) (*Channel, error) + func (g *Guild) Clear() + func (g *Guild) Compare(other *Guild) bool + func (g *Guild) DeepCopy() *Guild + func (g *Guild) DeleteChannel(c *Channel) error + func (g *Guild) DeleteChannelByID(ID Snowflake) error + func (g *Guild) DeleteRoleByID(ID Snowflake) + func (g *Guild) MarshalJSON() ([]byte, error) + func (g *Guild) Member(id Snowflake) (*Member, error) + func (g *Guild) MemberByName(name string) ([]*Member, error) + func (g *Guild) Role(id Snowflake) (*Role, error) + func (g *Guild) RoleByName(name string) ([]*Role, error) + func (g *Guild) Update(new *Guild) + func (g *Guild) UpdatePresence(p *UserPresence) + func (g *Guild) UpdateRole(r *Role) + type GuildEmbed struct + ChannelID Snowflake + Enabled bool + type GuildInterface interface + Channel func(ID Snowflake) + type GuildPruneCount struct + Pruned int + type GuildUnavailable struct + ID Snowflake + Unavailable bool + func NewGuildUnavailable(ID Snowflake) *GuildUnavailable + type Integration struct + Account *IntegrationAccount + Enabled bool + ExpireBehavior int + ExpireGracePeriod int + ID Snowflake + Name string + RoleID Snowflake + Syncing bool + Type string + User *User + type IntegrationAccount struct + ID string + Name string + type Invite struct + ApproximateMemberCount int + ApproximatePresenceCount int + Channel *PartialChannel + Code string + Guild *PartialGuild + type InviteMetadata struct + CreatedAt Timestamp + Inviter *User + MaxAge int + MaxUses int + Revoked bool + Temporary bool + Uses int + type MFALvl uint + func (mfal *MFALvl) Elevated() bool + func (mfal *MFALvl) None() bool + type Marshaler interface + MarshalJSON func() ([]byte, error) + type Member struct + Deaf bool + GuildID Snowflake + JoinedAt Timestamp + Mute bool + Nick string + Roles []Snowflake + User *User + func (m *Member) Clear() Snowflake + func (m *Member) Update(new *Member) (err error) + type Message struct + Activity MessageActivity + Application MessageApplication + Attachments []*Attachment + Author *User + ChannelID Snowflake + Content string + EditedTimestamp time.Time + Embeds []*ChannelEmbed + ID Snowflake + MentionEveryone bool + MentionRoles []Snowflake + Mentions []*User + Nonce Snowflake + Pinned bool + Reactions []*Reaction + Timestamp time.Time + Tts bool + Type uint + WebhookID Snowflake + func NewMessage() *Message + func (m *Message) AddReaction(reaction *Reaction) + func (m *Message) Delete() + func (m *Message) MarshalJSON() ([]byte, error) + func (m *Message) RemoveReaction(id Snowflake) + func (m *Message) Send() + func (m *Message) Update() + type MessageActivity struct + PartyID string + Type int + type MessageApplication struct + CoverImage string + Description string + ID Snowflake + Icon string + Name string + type PartialChannel = Channel + type PartialEmoji = Emoji + type PartialGuild = Guild + type PartialInvite = Invite + type PermissionOverwrite struct + Allow int + Deny int + ID Snowflake + Type string + func (pmo *PermissionOverwrite) Clear() + type Reaction struct + Count uint + Emoji *PartialEmoji + Me bool + type Role struct + Color int + Hoist bool + ID Snowflake + Managed bool + Mentionable bool + Name string + Permissions uint64 + Position int + func NewRole() *Role + func (r *Role) Clear() + func (r *Role) Mention() string + type Timestamp time.Time + func (t *Timestamp) UnmarshalJSON(data []byte) error + func (t Timestamp) MarshalJSON() ([]byte, error) + func (t Timestamp) String() string + func (t Timestamp) Time() time.Time + type Unmarshaler interface + UnmarshalJSON func(data []byte) error + type User struct + Avatar *string + Bot bool + Discriminator string + Email string + ID Snowflake + MFAEnabled bool + Token string + Username string + Verified bool + func NewUser() *User + func (u *User) Clear() + func (u *User) DeepCopy() *User + func (u *User) MarshalJSON() ([]byte, error) + func (u *User) Mention() string + func (u *User) MentionNickname() string + func (u *User) Partial() bool + func (u *User) SendMsg(requester httd.Requester, msg *Message) (channelID Snowflake, messageID Snowflake, err error) + func (u *User) SendMsgString(requester httd.Requester, msg string) (channelID Snowflake, messageID Snowflake, err error) + func (u *User) String() string + func (u *User) Valid() bool + type UserActivity struct + type UserConnection struct + ID string + Integrations []*IntegrationAccount + Name string + Revoked bool + Type string + type UserInterface interface + Mention func() string + MentionNickname func() string + String func() string + type UserPresence struct + Game *UserActivity + GuildID Snowflake + Nick string + Roles []Snowflake + Status string + User *User + func NewUserPresence() *UserPresence + func (p *UserPresence) Clear() + func (p *UserPresence) String() string + func (p *UserPresence) Update(status string) + type VerificationLvl uint + func (vl *VerificationLvl) High() bool + func (vl *VerificationLvl) Low() bool + func (vl *VerificationLvl) Medium() bool + func (vl *VerificationLvl) None() bool + func (vl *VerificationLvl) VeryHigh() bool + type VoiceRegion struct + Custom bool + Deprecated bool + ID Snowflake + Name string + Optimal bool + SampleHostname string + SamplePort uint + VIP bool + type VoiceState struct + ChannelID Snowflake + Deaf bool + GuildID Snowflake + Mute bool + SelfDeaf bool + SelfMute bool + SessionID string + Suppress bool + UserID Snowflake + func (vst *VoiceState) Clear() + type Webhook struct + Avatar string + ChannelID Snowflake + GuildID Snowflake + ID Snowflake + Name string + Token string + User *User