Versions in this module Expand all Collapse all v3 v3.1.0 Oct 11, 2022 Changes in this version + const AttachmentSpoilerPrefix + const MaxGuildFetchLimit + const MaxMemberFetchLimit + const MaxMessageReactionFetchLimit + var BaseEndpoint = "https://discord.com" + var Endpoint = BaseEndpoint + Path + "/" + var EndpointApplications = Endpoint + "applications/" + var EndpointAuth = Endpoint + "auth/" + var EndpointChannels = Endpoint + "channels/" + var EndpointGateway = Endpoint + "gateway" + var EndpointGatewayBot = EndpointGateway + "/bot" + var EndpointGuilds = Endpoint + "guilds/" + var EndpointInteractions = Endpoint + "interactions/" + var EndpointInvites = Endpoint + "invites/" + var EndpointLogin = EndpointAuth + "login" + var EndpointMe = EndpointUsers + "@me" + var EndpointStageInstances = Endpoint + "stage-instances/" + var EndpointTOTP = EndpointAuth + "mfa/totp" + var EndpointUsers = Endpoint + "users/" + var EndpointWebhooks = Endpoint + "webhooks/" + var ErrEmptyMessage = errors.New("message is empty") + var ErrInvalidImageCT = errors.New("unknown image content-type") + var ErrInvalidImageData = errors.New("invalid image data") + var NullImage = &Image + var Path = "/api/v" + Version + var UserAgent = "DiscordBot (https://github.com/zBNF/arikawa/v3)" + var Version = "9" + func GatewayURL(ctx context.Context) (string, error) + type Ack struct + Token *string + type ActiveThreads struct + Members []discord.ThreadMember + Threads []discord.Channel + type AddMemberData struct + Deaf option.Bool + Mute option.Bool + Nick option.String + Roles *[]discord.RoleID + Token string + type AddRoleData struct + type AllowedMentionType string + const AllowEveryoneMention + const AllowRoleMention + const AllowUserMention + type AllowedMentions struct + Parse []AllowedMentionType + RepliedUser option.Bool + Roles []discord.RoleID + Users []discord.UserID + func (am AllowedMentions) Verify() error + type ArchivedThreads struct + More bool + type AuditLogData struct + ActionType discord.AuditLogEvent + Before discord.AuditLogEntryID + Limit uint + UserID discord.UserID + type AuditLogReason string + func (r AuditLogReason) Header() http.Header + type AutocompleteChoices interface + type AutocompleteIntegerChoices []discord.IntegerChoice + type AutocompleteNumberChoices []discord.NumberChoice + type AutocompleteStringChoices []discord.StringChoice + type BanData struct + DeleteDays option.Uint + type BatchEditCommandPermissionsData struct + ID discord.CommandID + Permissions []discord.CommandPermissions + type BotData struct + Shards int + StartLimit *SessionStartLimit + URL string + type Client struct + AcquireOptions rate.AcquireOptions + func NewClient(token string) *Client + func NewCustomClient(token string, httpClient *httputil.Client) *Client + func (c *Client) Ack(channelID discord.ChannelID, messageID discord.MessageID, ack *Ack) error + func (c *Client) ActiveThreads(guildID discord.GuildID) (*ActiveThreads, error) + func (c *Client) AddMember(guildID discord.GuildID, userID discord.UserID, data AddMemberData) (*discord.Member, error) + func (c *Client) AddRecipient(channelID discord.ChannelID, userID discord.UserID, ...) error + func (c *Client) AddRole(guildID discord.GuildID, userID discord.UserID, roleID discord.RoleID, ...) error + func (c *Client) AddThreadMember(threadID discord.ChannelID, userID discord.UserID) error + func (c *Client) AttachIntegration(guildID discord.GuildID, integrationID discord.IntegrationID, ...) error + func (c *Client) AuditLog(guildID discord.GuildID, data AuditLogData) (*discord.AuditLog, error) + func (c *Client) Ban(guildID discord.GuildID, userID discord.UserID, data BanData) error + func (c *Client) Bans(guildID discord.GuildID) ([]discord.Ban, error) + func (c *Client) BatchEditCommandPermissions(appID discord.AppID, guildID discord.GuildID, ...) ([]discord.GuildCommandPermissions, error) + func (c *Client) BotURL() (*BotData, error) + func (c *Client) BulkOverwriteCommands(appID discord.AppID, commands []CreateCommandData) ([]discord.Command, error) + func (c *Client) BulkOverwriteGuildCommands(appID discord.AppID, guildID discord.GuildID, commands []CreateCommandData) ([]discord.Command, error) + func (c *Client) Channel(channelID discord.ChannelID) (*discord.Channel, error) + func (c *Client) ChannelInvites(channelID discord.ChannelID) ([]discord.Invite, error) + func (c *Client) ChannelWebhooks(channelID discord.ChannelID) ([]discord.Webhook, error) + func (c *Client) Channels(guildID discord.GuildID) ([]discord.Channel, error) + func (c *Client) Command(appID discord.AppID, commandID discord.CommandID) (*discord.Command, error) + func (c *Client) CommandPermissions(appID discord.AppID, guildID discord.GuildID, commandID discord.CommandID) (*discord.GuildCommandPermissions, error) + func (c *Client) Commands(appID discord.AppID) ([]discord.Command, error) + func (c *Client) CreateChannel(guildID discord.GuildID, data CreateChannelData) (*discord.Channel, error) + func (c *Client) CreateCommand(appID discord.AppID, data CreateCommandData) (*discord.Command, error) + func (c *Client) CreateEmoji(guildID discord.GuildID, data CreateEmojiData) (*discord.Emoji, error) + func (c *Client) CreateGuild(data CreateGuildData) (*discord.Guild, error) + func (c *Client) CreateGuildCommand(appID discord.AppID, guildID discord.GuildID, data CreateCommandData) (*discord.Command, error) + func (c *Client) CreateInteractionFollowup(appID discord.AppID, token string, data InteractionResponseData) (*discord.Message, error) + func (c *Client) CreateInvite(channelID discord.ChannelID, data CreateInviteData) (*discord.Invite, error) + func (c *Client) CreatePrivateChannel(recipientID discord.UserID) (*discord.Channel, error) + func (c *Client) CreateRole(guildID discord.GuildID, data CreateRoleData) (*discord.Role, error) + func (c *Client) CreateScheduledEvent(guildID discord.GuildID, reason AuditLogReason, data CreateScheduledEventData) (*discord.GuildScheduledEvent, error) + func (c *Client) CreateStageInstance(data CreateStageInstanceData) (*discord.StageInstance, error) + func (c *Client) CreateWebhook(channelID discord.ChannelID, data CreateWebhookData) (*discord.Webhook, error) + func (c *Client) CrosspostMessage(channelID discord.ChannelID, messageID discord.MessageID) (*discord.Message, error) + func (c *Client) CurrentApplication() (*discord.Application, error) + func (c *Client) DeleteAllReactions(channelID discord.ChannelID, messageID discord.MessageID) error + func (c *Client) DeleteChannel(channelID discord.ChannelID, reason AuditLogReason) error + func (c *Client) DeleteChannelPermission(channelID discord.ChannelID, overwriteID discord.Snowflake, ...) error + func (c *Client) DeleteCommand(appID discord.AppID, commandID discord.CommandID) error + func (c *Client) DeleteEmoji(guildID discord.GuildID, emojiID discord.EmojiID, reason AuditLogReason) error + func (c *Client) DeleteGuild(id discord.GuildID) error + func (c *Client) DeleteGuildCommand(appID discord.AppID, guildID discord.GuildID, commandID discord.CommandID) error + func (c *Client) DeleteInteractionFollowup(appID discord.AppID, messageID discord.MessageID, token string) error + func (c *Client) DeleteInteractionResponse(appID discord.AppID, token string) error + func (c *Client) DeleteInvite(code string, reason AuditLogReason) (*discord.Invite, error) + func (c *Client) DeleteMessage(channelID discord.ChannelID, messageID discord.MessageID, ...) error + func (c *Client) DeleteMessages(channelID discord.ChannelID, messageIDs []discord.MessageID, ...) error + func (c *Client) DeleteReactions(channelID discord.ChannelID, messageID discord.MessageID, ...) error + func (c *Client) DeleteRelationship(userID discord.UserID) error + func (c *Client) DeleteRole(guildID discord.GuildID, roleID discord.RoleID, reason AuditLogReason) error + func (c *Client) DeleteScheduledEvent(guildID discord.GuildID, eventID discord.EventID) error + func (c *Client) DeleteStageInstance(channelID discord.ChannelID, reason AuditLogReason) error + func (c *Client) DeleteUserReaction(channelID discord.ChannelID, messageID discord.MessageID, ...) error + func (c *Client) DeleteWebhook(webhookID discord.WebhookID) error + func (c *Client) EditChannelPermission(channelID discord.ChannelID, overwriteID discord.Snowflake, ...) error + func (c *Client) EditCommand(appID discord.AppID, commandID discord.CommandID, data CreateCommandData) (*discord.Command, error) + func (c *Client) EditCommandPermissions(appID discord.AppID, guildID discord.GuildID, commandID discord.CommandID, ...) (*discord.GuildCommandPermissions, error) + func (c *Client) EditEmbeds(channelID discord.ChannelID, messageID discord.MessageID, ...) (*discord.Message, error) + func (c *Client) EditGuildCommand(appID discord.AppID, guildID discord.GuildID, commandID discord.CommandID, ...) (*discord.Command, error) + func (c *Client) EditInteractionFollowup(appID discord.AppID, messageID discord.MessageID, token string, ...) (*discord.Message, error) + func (c *Client) EditInteractionResponse(appID discord.AppID, token string, data EditInteractionResponseData) (*discord.Message, error) + func (c *Client) EditMessage(channelID discord.ChannelID, messageID discord.MessageID, content string, ...) (*discord.Message, error) + func (c *Client) EditMessageComplex(channelID discord.ChannelID, messageID discord.MessageID, data EditMessageData) (*discord.Message, error) + func (c *Client) EditScheduledEvent(guildID discord.GuildID, eventID discord.EventID, reason AuditLogReason, ...) (*discord.GuildScheduledEvent, error) + func (c *Client) EditText(channelID discord.ChannelID, messageID discord.MessageID, content string) (*discord.Message, error) + func (c *Client) Emoji(guildID discord.GuildID, emojiID discord.EmojiID) (*discord.Emoji, error) + func (c *Client) Emojis(guildID discord.GuildID) ([]discord.Emoji, error) + func (c *Client) FollowUpInteraction(appID discord.AppID, token string, data InteractionResponseData) (*discord.Message, error) + func (c *Client) GetBan(guildID discord.GuildID, userID discord.UserID) (*discord.Ban, error) + func (c *Client) Guild(id discord.GuildID) (*discord.Guild, error) + func (c *Client) GuildCommand(appID discord.AppID, guildID discord.GuildID, commandID discord.CommandID) (*discord.Command, error) + func (c *Client) GuildCommandPermissions(appID discord.AppID, guildID discord.GuildID) ([]discord.GuildCommandPermissions, error) + func (c *Client) GuildCommands(appID discord.AppID, guildID discord.GuildID) ([]discord.Command, error) + func (c *Client) GuildInvites(guildID discord.GuildID) ([]discord.Invite, error) + func (c *Client) GuildPreview(id discord.GuildID) (*discord.GuildPreview, error) + func (c *Client) GuildVanityInvite(guildID discord.GuildID) (*discord.Invite, error) + func (c *Client) GuildWebhooks(guildID discord.GuildID) ([]discord.Webhook, error) + func (c *Client) GuildWidget(guildID discord.GuildID) (*discord.GuildWidget, error) + func (c *Client) GuildWidgetImage(guildID discord.GuildID, img GuildWidgetImageStyle) (io.ReadCloser, error) + func (c *Client) GuildWidgetImageURL(guildID discord.GuildID, img GuildWidgetImageStyle) string + func (c *Client) GuildWidgetSettings(guildID discord.GuildID) (*discord.GuildWidgetSettings, error) + func (c *Client) GuildWithCount(id discord.GuildID) (*discord.Guild, error) + func (c *Client) Guilds(limit uint) ([]discord.Guild, error) + func (c *Client) GuildsAfter(after discord.GuildID, limit uint) ([]discord.Guild, error) + func (c *Client) GuildsBefore(before discord.GuildID, limit uint) ([]discord.Guild, error) + func (c *Client) InjectRequest(r httpdriver.Request) error + func (c *Client) Integrations(guildID discord.GuildID) ([]discord.Integration, error) + func (c *Client) InteractionResponse(appID discord.AppID, token string) (*discord.Message, error) + func (c *Client) Invite(code string) (*discord.Invite, error) + func (c *Client) InviteWithCounts(code string) (*discord.Invite, error) + func (c *Client) JoinInvite(code string) (*JoinedInvite, error) + func (c *Client) JoinThread(threadID discord.ChannelID) error + func (c *Client) JoinedPrivateArchivedThreads(channelID discord.ChannelID, before discord.Timestamp, limit uint) (*ArchivedThreads, error) + func (c *Client) JoinedPrivateArchivedThreadsBefore(channelID discord.ChannelID, before discord.Timestamp, limit uint) (*ArchivedThreads, error) + func (c *Client) Kick(guildID discord.GuildID, userID discord.UserID, reason AuditLogReason) error + func (c *Client) LeaveGuild(id discord.GuildID) error + func (c *Client) LeaveThread(threadID discord.ChannelID) error + func (c *Client) ListScheduledEventUsers(guildID discord.GuildID, eventID discord.EventID, limit option.NullableInt, ...) ([]GuildScheduledEventUser, error) + func (c *Client) ListScheduledEvents(guildID discord.GuildID, withUserCount bool) ([]discord.GuildScheduledEvent, error) + func (c *Client) Login(email, password string) (*LoginResponse, error) + func (c *Client) Me() (*discord.User, error) + func (c *Client) Member(guildID discord.GuildID, userID discord.UserID) (*discord.Member, error) + func (c *Client) Members(guildID discord.GuildID, limit uint) ([]discord.Member, error) + func (c *Client) MembersAfter(guildID discord.GuildID, after discord.UserID, limit uint) ([]discord.Member, error) + func (c *Client) Message(channelID discord.ChannelID, messageID discord.MessageID) (*discord.Message, error) + func (c *Client) Messages(channelID discord.ChannelID, limit uint) ([]discord.Message, error) + func (c *Client) MessagesAfter(channelID discord.ChannelID, after discord.MessageID, limit uint) ([]discord.Message, error) + func (c *Client) MessagesAround(channelID discord.ChannelID, around discord.MessageID, limit uint) ([]discord.Message, error) + func (c *Client) MessagesBefore(channelID discord.ChannelID, before discord.MessageID, limit uint) ([]discord.Message, error) + func (c *Client) ModifyChannel(channelID discord.ChannelID, data ModifyChannelData) error + func (c *Client) ModifyCurrentMember(guildID discord.GuildID, nick string) error + func (c *Client) ModifyCurrentUser(data ModifyCurrentUserData) (*discord.User, error) + func (c *Client) ModifyEmoji(guildID discord.GuildID, emojiID discord.EmojiID, data ModifyEmojiData) error + func (c *Client) ModifyGuild(id discord.GuildID, data ModifyGuildData) (*discord.Guild, error) + func (c *Client) ModifyGuildWidget(guildID discord.GuildID, data ModifyGuildWidgetData) (*discord.GuildWidgetSettings, error) + func (c *Client) ModifyIntegration(guildID discord.GuildID, integrationID discord.IntegrationID, ...) error + func (c *Client) ModifyMember(guildID discord.GuildID, userID discord.UserID, data ModifyMemberData) error + func (c *Client) ModifyRole(guildID discord.GuildID, roleID discord.RoleID, data ModifyRoleData) (*discord.Role, error) + func (c *Client) ModifyWebhook(webhookID discord.WebhookID, data ModifyWebhookData) (*discord.Webhook, error) + func (c *Client) MoveChannels(guildID discord.GuildID, data MoveChannelsData) error + func (c *Client) MoveRoles(guildID discord.GuildID, data MoveRolesData) ([]discord.Role, error) + func (c *Client) Note(userID discord.UserID) (string, error) + func (c *Client) OnResponse(r httpdriver.Request, resp httpdriver.Response) error + func (c *Client) PinMessage(channelID discord.ChannelID, messageID discord.MessageID, ...) error + func (c *Client) PinnedMessages(channelID discord.ChannelID) ([]discord.Message, error) + func (c *Client) PrivateArchivedThreads(channelID discord.ChannelID, before discord.Timestamp, limit uint) (*ArchivedThreads, error) + func (c *Client) PrivateArchivedThreadsBefore(channelID discord.ChannelID, before discord.Timestamp, limit uint) (*ArchivedThreads, error) + func (c *Client) PrivateChannels() ([]discord.Channel, error) + func (c *Client) Prune(guildID discord.GuildID, data PruneData) (uint, error) + func (c *Client) PruneCount(guildID discord.GuildID, data PruneCountData) (uint, error) + func (c *Client) PublicArchivedThreads(channelID discord.ChannelID, before discord.Timestamp, limit uint) (*ArchivedThreads, error) + func (c *Client) PublicArchivedThreadsBefore(channelID discord.ChannelID, before discord.Timestamp, limit uint) (*ArchivedThreads, error) + func (c *Client) React(channelID discord.ChannelID, messageID discord.MessageID, ...) error + func (c *Client) Reactions(channelID discord.ChannelID, messageID discord.MessageID, ...) ([]discord.User, error) + func (c *Client) ReactionsAfter(channelID discord.ChannelID, messageID discord.MessageID, after discord.UserID, ...) ([]discord.User, error) + func (c *Client) ReactionsBefore(channelID discord.ChannelID, messageID discord.MessageID, ...) ([]discord.User, error) + func (c *Client) RemoveRecipient(channelID discord.ChannelID, userID discord.UserID) error + func (c *Client) RemoveRole(guildID discord.GuildID, userID discord.UserID, roleID discord.RoleID, ...) error + func (c *Client) RemoveThreadMember(threadID discord.ChannelID, userID discord.UserID) error + func (c *Client) RespondInteraction(id discord.InteractionID, token string, resp InteractionResponse) error + func (c *Client) Roles(guildID discord.GuildID) ([]discord.Role, error) + func (c *Client) ScheduledEvent(guildID discord.GuildID, eventID discord.EventID, withUserCount bool) (*discord.GuildScheduledEvent, error) + func (c *Client) Search(guildID discord.GuildID, data SearchData) (SearchResponse, error) + func (c *Client) SendEmbedReply(channelID discord.ChannelID, referenceID discord.MessageID, ...) (*discord.Message, error) + func (c *Client) SendEmbeds(channelID discord.ChannelID, e ...discord.Embed) (*discord.Message, error) + func (c *Client) SendMessage(channelID discord.ChannelID, content string, embeds ...discord.Embed) (*discord.Message, error) + func (c *Client) SendMessageComplex(channelID discord.ChannelID, data SendMessageData) (*discord.Message, error) + func (c *Client) SendMessageReply(channelID discord.ChannelID, content string, referenceID discord.MessageID, ...) (*discord.Message, error) + func (c *Client) SendTextReply(channelID discord.ChannelID, content string, referenceID discord.MessageID) (*discord.Message, error) + func (c *Client) SetNote(userID discord.UserID, note string) error + func (c *Client) SetRelationship(userID discord.UserID, t discord.RelationshipType) error + func (c *Client) StartThreadWithMessage(channelID discord.ChannelID, messageID discord.MessageID, data StartThreadData) (*discord.Channel, error) + func (c *Client) StartThreadWithoutMessage(channelID discord.ChannelID, data StartThreadData) (*discord.Channel, error) + func (c *Client) SyncIntegration(guildID discord.GuildID, integrationID discord.IntegrationID) error + func (c *Client) TOTP(code, ticket string) (*LoginResponse, error) + func (c *Client) ThreadMembers(threadID discord.ChannelID) ([]discord.ThreadMember, error) + func (c *Client) Typing(channelID discord.ChannelID) error + func (c *Client) Unban(guildID discord.GuildID, userID discord.UserID, reason AuditLogReason) error + func (c *Client) UnpinMessage(channelID discord.ChannelID, messageID discord.MessageID, ...) error + func (c *Client) Unreact(channelID discord.ChannelID, messageID discord.MessageID, ...) error + func (c *Client) UpdateStageInstance(channelID discord.ChannelID, data UpdateStageInstanceData) error + func (c *Client) User(userID discord.UserID) (*discord.User, error) + func (c *Client) UserConnections() ([]discord.Connection, error) + func (c *Client) VoiceRegionsGuild(guildID discord.GuildID) ([]discord.VoiceRegion, error) + func (c *Client) Webhook(webhookID discord.WebhookID) (*discord.Webhook, error) + func (c *Client) WithContext(ctx context.Context) *Client + func (c *Client) WithLocale(language discord.Language) *Client + type CreateChannelData struct + AvailableTags []discord.Tag + CategoryID discord.ChannelID + DefaultReactionEmoji *discord.ForumReaction + Flags discord.ChannelFlags + NSFW bool + Name string + Overwrites []discord.Overwrite + Position option.Int + RTCRegionID string + Topic string + Type discord.ChannelType + UserRateLimit discord.Seconds + VoiceBitrate uint + VoiceQualityMode discord.VideoQualityMode + VoiceUserLimit uint + type CreateCommandData struct + DefaultMemberPermissions *discord.Permissions + Description string + DescriptionLocalizations discord.StringLocales + Name string + NameLocalizations discord.StringLocales + NoDMPermission bool + NoDefaultPermission bool + Options discord.CommandOptions + Type discord.CommandType + func (c *CreateCommandData) UnmarshalJSON(data []byte) error + func (c CreateCommandData) MarshalJSON() ([]byte, error) + type CreateEmojiData struct + Image Image + Name string + Roles *[]discord.RoleID + type CreateGuildData struct + AFKChannelID discord.ChannelID + AFKTimeout discord.OptionalSeconds + Channels []discord.Channel + ExplicitFilter *discord.ExplicitFilter + Icon *Image + Name string + Notification *discord.Notification + Roles []discord.Role + SystemChannelID discord.ChannelID + Verification *discord.Verification + VoiceRegion string + type CreateInviteData struct + MaxAge option.Uint + MaxUses uint + Temporary bool + Unique bool + type CreateRoleData struct + Color discord.Color + Hoist bool + Icon *Image + Mentionable bool + Name string + Permissions discord.Permissions + UnicodeEmoji string + type CreateScheduledEventData struct + ChannelID discord.ChannelID + Description string + EndTime *discord.Timestamp + EntityMetadata *discord.EntityMetadata + EntityType discord.EntityType + Image Image + Name string + PrivacyLevel discord.ScheduledEventPrivacyLevel + StartTime discord.Timestamp + type CreateStageInstanceData struct + ChannelID discord.ChannelID + PrivacyLevel discord.PrivacyLevel + Topic string + type CreateWebhookData struct + Avatar *Image + Name string + type EditChannelPermissionData struct + Allow discord.Permissions + Deny discord.Permissions + Type discord.OverwriteType + type EditInteractionResponseData struct + AllowedMentions *AllowedMentions + Attachments *[]discord.Attachment + Components *discord.ContainerComponents + Content option.NullableString + Embeds *[]discord.Embed + Files []sendpart.File + func (data EditInteractionResponseData) NeedsMultipart() bool + func (data EditInteractionResponseData) WriteMultipart(body *multipart.Writer) error + type EditMessageData struct + AllowedMentions *AllowedMentions + Attachments *[]discord.Attachment + Components *discord.ContainerComponents + Content option.NullableString + Embeds *[]discord.Embed + Files []sendpart.File + Flags *discord.MessageFlags + func (data EditMessageData) NeedsMultipart() bool + func (data EditMessageData) WriteMultipart(body *multipart.Writer) error + type EditScheduledEventData struct + ChannelID discord.ChannelID + Description option.NullableString + EndTime *discord.Timestamp + EntityMetadata *discord.EntityMetadata + EntityType discord.EntityType + Image *Image + Name option.NullableString + PrivacyLevel discord.ScheduledEventPrivacyLevel + StartTime *discord.Timestamp + Status discord.EventStatus + type GuildScheduledEventUser struct + EventID discord.EventID + Member *discord.Member + User discord.User + type GuildWidgetImageStyle string + const GuildBanner1 + const GuildBanner2 + const GuildBanner3 + const GuildBanner4 + const GuildShield + type Image struct + Content []byte + ContentType string + func DecodeImage(data []byte) (*Image, error) + func (i *Image) UnmarshalJSON(v []byte) error + func (i Image) Encode() ([]byte, error) + func (i Image) MarshalJSON() ([]byte, error) + func (i Image) Validate(maxSize int) error + type ImageTooLargeError struct + Max int + Size int + func (err ImageTooLargeError) Error() string + type InteractionResponse struct + Data *InteractionResponseData + Type InteractionResponseType + func (resp InteractionResponse) NeedsMultipart() bool + func (resp InteractionResponse) WriteMultipart(body *multipart.Writer) error + type InteractionResponseData struct + AllowedMentions *AllowedMentions + Choices AutocompleteChoices + Components *discord.ContainerComponents + Content option.NullableString + CustomID option.NullableString + Embeds *[]discord.Embed + Files []sendpart.File + Flags discord.MessageFlags + TTS bool + Title option.NullableString + func (d InteractionResponseData) NeedsMultipart() bool + func (d InteractionResponseData) WriteMultipart(body *multipart.Writer) error + type InteractionResponseFlags = discord.MessageFlags + const EphemeralResponse + type InteractionResponseType uint + const AutocompleteResult + const DeferredMessageInteractionWithSource + const DeferredMessageUpdate + const MessageInteractionWithSource + const ModalResponse + const PongInteraction + const UpdateMessage + type JoinedInvite struct + Channel discord.Channel + Code string + Guild discord.Guild + NewMember bool + type LoginResponse struct + MFA bool + SMS bool + Ticket string + Token string + type ModifyChannelData struct + AppliedTags *[]discord.TagID + Archived option.Bool + AutoArchiveDuration discord.ArchiveDuration + AvailableTags *[]discord.Tag + CategoryID discord.ChannelID + DefaultReactionEmoji **discord.ForumReaction + Flags *discord.ChannelFlags + Icon string + Invitable option.Bool + Locked option.Bool + NSFW option.NullableBool + Name string + Overwrites *[]discord.Overwrite + Position option.NullableInt + RTCRegionID option.NullableString + Topic option.NullableString + Type *discord.ChannelType + UserRateLimit option.NullableUint + VoiceBitrate option.NullableUint + VoiceUserLimit option.NullableUint + type ModifyCurrentUserData struct + Avatar *Image + Username option.String + type ModifyEmojiData struct + Name string + Roles *[]discord.RoleID + type ModifyGuildData struct + AFKChannelID discord.ChannelID + AFKTimeout discord.OptionalSeconds + Banner *Image + ExplicitFilter *discord.ExplicitFilter + Icon *Image + Name string + Notification *discord.Notification + OwnerID discord.UserID + PreferredLocale option.NullableString + PublicUpdatesChannelID discord.ChannelID + Region option.NullableString + RulesChannelID discord.ChannelID + Splash *Image + SystemChannelID discord.ChannelID + Verification *discord.Verification + type ModifyGuildWidgetData struct + ChannelID discord.ChannelID + Enabled option.Bool + type ModifyIntegrationData struct + EnableEmoticons option.NullableBool + ExpireBehavior *discord.ExpireBehavior + ExpireGracePeriod option.NullableInt + type ModifyMemberData struct + CommunicationDisabledUntil *discord.Timestamp + Deaf option.Bool + Mute option.Bool + Nick option.String + Roles *[]discord.RoleID + VoiceChannel discord.ChannelID + type ModifyRoleData struct + Color discord.Color + Hoist option.NullableBool + Icon *Image + Mentionable option.NullableBool + Name option.NullableString + Permissions *discord.Permissions + UnicodeEmoji option.NullableString + type ModifyWebhookData struct + Avatar *Image + ChannelID discord.ChannelID + Name option.String + type MoveChannelData struct + CategoryID discord.ChannelID + ID discord.ChannelID + LockPermissions option.Bool + Position option.Int + type MoveChannelsData struct + Channels []MoveChannelData + type MoveRoleData struct + ID discord.RoleID + Position option.NullableInt + type MoveRolesData struct + Roles []MoveRoleData + type PruneCountData struct + Days uint + IncludedRoles []discord.RoleID + type PruneData struct + Days uint + IncludedRoles []discord.RoleID + ReturnCount bool + type SearchData struct + AuthorID discord.UserID + ChannelID discord.ChannelID + Content string + Has string + MaxID discord.MessageID + Mentions discord.UserID + MinID discord.MessageID + Offset uint + SortBy string + SortOrder string + type SearchResponse struct + AnalyticsID string + Messages [][]discord.Message + TotalResults uint + type SendMessageData struct + AllowedMentions *AllowedMentions + Components discord.ContainerComponents + Content string + Embeds []discord.Embed + Files []sendpart.File + Nonce string + Reference *discord.MessageReference + TTS bool + func (data SendMessageData) NeedsMultipart() bool + func (data SendMessageData) WriteMultipart(body *multipart.Writer) error + type Session struct + Limiter *rate.Limiter + Token string + UserAgent string + type SessionStartLimit struct + MaxConcurrency int + Remaining int + ResetAfter discord.Milliseconds + Total int + type StartThreadData struct + AutoArchiveDuration discord.ArchiveDuration + Invitable bool + Name string + Type discord.ChannelType + type UpdateStageInstanceData struct + PrivacyLevel discord.PrivacyLevel + Topic string