Versions in this module Expand all Collapse all v0 v0.9.0 Jan 8, 2024 v0.8.1 Oct 8, 2022 v0.8.0 Oct 8, 2022 Changes in this version type ResponseWriterMock + ModalHook func(corde.Modal) + func (r ResponseWriterMock) Ack() + func (r ResponseWriterMock) Modal(m corde.Modal) v0.7.2 Jan 27, 2022 v0.7.1 Jan 19, 2022 v0.7.0 Jan 13, 2022 v0.6.0 Jan 7, 2022 Changes in this version + type ResponseWriterMock struct + AutocompleteHook func(corde.InteractionResponder) + DeferedRespondHook func(corde.InteractionResponder) + DeferedUpdateHook func(corde.InteractionResponder) + RespondHook func(corde.InteractionResponder) + T *testing.T + UpdateHook func(corde.InteractionResponder) + func NewRWMock(t *testing.T) ResponseWriterMock + func (r ResponseWriterMock) Autocomplete(i corde.InteractionResponder) + func (r ResponseWriterMock) DeferedRespond(i corde.InteractionResponder) + func (r ResponseWriterMock) DeferedUpdate(i corde.InteractionResponder) + func (r ResponseWriterMock) Pong() + func (r ResponseWriterMock) Respond(i corde.InteractionResponder) + func (r ResponseWriterMock) Update(i corde.InteractionResponder) v0.5.0 Jan 5, 2022 Changes in this version + func GenerateKeys() (pub string, priv string) + type Activity struct + PartyID string + Type int + type AllowedMentions string + const EveryoneMentions + const RoleMentions + const UserMentions + type Application struct + BotPublic bool + BotRequireCodeGrant bool + CoverImage string + Description string + Flags int + GuildID corde.Snowflake + ID corde.Snowflake + Icon string + Name string + Owner User + PrimarySKUID corde.Snowflake + PrivacyPolicyURL string + RPCOrigins []string + Slug string + Summary string + Team Team + TermsOfServiceURL string + VerifyKey string + type ApplicationCommandType int + const CHAT_INPUT + const MESSAGE + const USER + type Attachment struct + ContentType string + Description string + Ephemeral bool + Filename string + Height int + ID corde.Snowflake + ProxyURL string + Size int + URL string + Width int + type Channel struct + Bitrate int + GuildID corde.Snowflake + ID corde.Snowflake + LastMessageID corde.Snowflake + LastPinTimestamp corde.Timestamp + NSFW bool + Name string + OwnerID corde.Snowflake + PermissionOverwrites []Overwrite + Position int + RateLimitPerUser int + Topic string + Type int + UserLimit int + type Component struct + Components []Component + CustomID string + Disabled bool + Emoji Emoji + Label string + MaxValues int + MinValues int + Options []Option + Placeholder string + Style int + Type int + URL string + type Doer interface + Do func(*http.Request) (*http.Response, error) + type Embed struct + Author EmbedAuthor + Color int + Description string + Fields []EmbedField + Footer EmbedFooter + Image EmbedImage + Provider EmbedProvider + Thumbnail EmbedThumbnail + Timestamp corde.Timestamp + Title string + Type string + URL string + Video EmbedVideo + type EmbedAuthor struct + IconURL string + Name string + ProxyIconURL string + URL string + type EmbedField struct + Inline bool + Name string + Value string + type EmbedFooter struct + IconURL string + ProxyIconURL string + Text string + type EmbedImage struct + Height int + ProxyURL string + URL string + Width int + type EmbedProvider struct + Name string + URL string + type EmbedThumbnail struct + Height int + ProxyURL string + URL string + Width int + type EmbedVideo struct + Height int + ProxyURL string + URL string + Width int + type Emoji struct + Animated bool + Available bool + ID corde.Snowflake + Managed bool + Name string + RequireColons bool + Roles []corde.Snowflake + User User + type Interaction struct + ApplicationID corde.Snowflake + ChannelID corde.Snowflake + Data InteractionData + GuildID corde.Snowflake + ID corde.Snowflake + Member Member + Message Message + Token string + Type InteractionType + User User + Version int + type InteractionData struct + ComponentType int + CustomID string + ID corde.Snowflake + Name string + Options []Option + Resolved Resolved + TargetID corde.Snowflake + Type ApplicationCommandType + Values []string + type InteractionResponse struct + Data InteractionResponseData + Type int + type InteractionResponseData struct + AllowedMentions AllowedMentions + Attachments []Attachment + Components []Component + Content string + Embeds []Embed + Flags int + TTS bool + type InteractionType int + const APPLICATION_COMMAND + const APPLICATION_COMMAND_AUTOCOMPLETE + const MESSAGE_COMPONENT + const PING + type Member struct + Avatar string + Communication corde.Timestamp + Deaf bool + JoinedAt string + Mute bool + Nick string + Pending bool + Permissions string + PremiumSince corde.Timestamp + Roles []corde.Snowflake + User User + type Message struct + Activity Activity + Application Application + ApplicationID corde.Snowflake + Attachments []Attachment + Author User + ChannelID corde.Snowflake + Components []Component + Content string + Edited corde.Timestamp + Embeds []Embed + Flags int + GuildID corde.Snowflake + ID corde.Snowflake + Interaction *Interaction + Member Member + Mention bool + MentionChannels []Channel + MentionRoles []corde.Snowflake + Mentions []User + MessageReference MessageReference + Nonce string + Pinned bool + Reactions []Reaction + ReferencedMessage *Message + StickerItems []StickerItem + Stickers []Sticker + TTS bool + Thread Channel + Timestamp corde.Timestamp + Type int + WebhookID corde.Snowflake + type MessageReference struct + ChannelID corde.Snowflake + FailIfNotExists bool + GuildID corde.Snowflake + MessageID corde.Snowflake + type Option struct + Focused bool + Name string + Options []Option + Type int + Value string + type Overwrite struct + Allow string + Deny string + ID corde.Snowflake + Type int + type Reaction struct + Count int + Emoji Emoji + Me bool + type Requester struct + Client Doer + PrivateKey ed25519.PrivateKey + URL string + func New(endpointURL string) *Requester + func NewWithClient(endpointURL string, c Doer) *Requester + func (r *Requester) Post(body string) (json.RawMessage, error) + func (r *Requester) PostExpect(t is.T, body any, expectV any) error + func (r *Requester) PostJSON(body any) (json.RawMessage, error) + type Resolved struct + Channels map[corde.Snowflake]Channel + Members map[corde.Snowflake]Member + Messages map[corde.Snowflake]Message + Roles map[corde.Snowflake]Role + Users map[corde.Snowflake]User + type Role struct + Color int + Hoist bool + ID corde.Snowflake + Icon string + Managed bool + Mentionable bool + Name string + Permissions string + Position int + Tags []RoleTag + UnicodeEmoji string + type RoleTag struct + BotID corde.Snowflake + IntegrationID corde.Snowflake + PremiumSubscriber bool + type Sticker struct + Asset string + Available bool + Description string + FormatType int + GuildID corde.Snowflake + ID corde.Snowflake + Name string + PackID corde.Snowflake + SortValue int + Tags string + Type int + User User + type StickerItem struct + FormatID int + ID corde.Snowflake + Name string + type Team struct + ID corde.Snowflake + Icon string + Members []TeamMember + Name string + OwnerUserID corde.Snowflake + type TeamMember struct + MembershipState int + Permissions []string + TeamID corde.Snowflake + User User + type User struct + AccentColor int + Avatar string + Banner string + Bot bool + Discriminator string + Email string + Flags int + ID corde.Snowflake + Locale string + MFAEnabled bool + PremiumType int + PublicFlags int + System bool + Username string + Verified bool