Documentation
¶
Index ¶
- Constants
- func AchievementIcon(app, achievement snowflake.ID, hash string, opts ...CDNOption) string
- func ApplicationAsset(id snowflake.ID, hash string, opts ...CDNOption) string
- func ApplicationIcon(id snowflake.ID, hash string, opts ...CDNOption) string
- func AsImageData(format string, img []byte) string
- func AvatarDecoration(hash string) string
- func CustomEmoji(id snowflake.ID, opts ...CDNOption) string
- func DefaultUserAvatar(id snowflake.ID) string
- func GuildBanner(id snowflake.ID, hash string, opts ...CDNOption) string
- func GuildDiscoverySplash(id snowflake.ID, hash string, opts ...CDNOption) string
- func GuildIcon(id snowflake.ID, hash string, opts ...CDNOption) string
- func GuildMemberAvatar(guild, user snowflake.ID, hash string, opts ...CDNOption) string
- func GuildMemberBanner(guild, user snowflake.ID, hash string, opts ...CDNOption) string
- func GuildScheduledEventCover(event snowflake.ID, hash string, opts ...CDNOption) string
- func GuildSplash(id snowflake.ID, hash string, opts ...CDNOption) string
- func ImageDataFromNetwork(url string) (string, error)
- func JoinPath(seg ...string) string
- func RoleIcon(role snowflake.ID, hash string, opts ...CDNOption) string
- func Sticker(sticker snowflake.ID, opts ...CDNOption) string
- func StickerPackBanner(app, asset snowflake.ID, hash string, opts ...CDNOption) string
- func StorePageAsset(app, asset snowflake.ID, hash string, opts ...CDNOption) string
- func TeamIcon(team snowflake.ID, hash string, opts ...CDNOption) string
- func UserAvatar(id snowflake.ID, hash string, opts ...CDNOption) string
- func UserBanner(id snowflake.ID, hash string, opts ...CDNOption) string
- type AttachmentResolver
- type AttachmentResolverFn
- type CDNOption
- type CDNOptions
Constants ¶
View Source
const AttachmentSizeLimit = uint(1024 * 1024 * 25)
View Source
const CDNUrl = "https://cdn.discordapp.com/"
Variables ¶
This section is empty.
Functions ¶
func AchievementIcon ¶
func ApplicationAsset ¶
func AsImageData ¶
func AvatarDecoration ¶
func DefaultUserAvatar ¶
func GuildDiscoverySplash ¶
func GuildMemberAvatar ¶
func GuildMemberBanner ¶
func ImageDataFromNetwork ¶
func StickerPackBanner ¶
func StorePageAsset ¶
Types ¶
type AttachmentResolver ¶
type AttachmentResolver interface {
Network(url string, limit ...uint) AttachmentResolverFn
Local(path string) AttachmentResolverFn
Raw(data []byte) AttachmentResolverFn
Base64(b64 string) AttachmentResolverFn
}
func ResolveAttachment ¶
func ResolveAttachment() AttachmentResolver
type AttachmentResolverFn ¶
type CDNOption ¶
type CDNOption func(opts CDNOptions) CDNOptions
func DoNotAnimate ¶
func DoNotAnimate() CDNOption
func DoNotUseDefault ¶
func DoNotUseDefault() CDNOption
type CDNOptions ¶
Click to show internal directories.
Click to hide internal directories.