Functions
Functions
182 public functions exported by seyfert.
Function182functionsseyfert5.0.0
Functions
182
activatePluginEventListenersFunctionaddPluginDiagnosticFunctionaddPluginGlobalMiddlewaresFunctionaddPluginOptionFragmentFunctionaddPluginSharedFunctionapplyPluginGatewayDispatchInterceptorsFunctionapplyPluginGatewaySendPayloadWrappersFunctionassertCanMutatePluginContributionFunctionassertSafePluginResourceNameFunctionassertStringFunctionAutoLoadFunctionbgBlackFunctionSet background color to black.bgBlueFunctionSet background color to blue.bgBrightBlackFunctionSet background color to bright black.bgBrightBlueFunctionSet background color to bright blue.bgBrightCyanFunctionSet background color to bright cyan.bgBrightGreenFunctionSet background color to bright green.bgBrightMagentaFunctionSet background color to bright magenta.bgBrightRedFunctionSet background color to bright red.bgBrightWhiteFunctionSet background color to bright white.bgBrightYellowFunctionSet background color to bright yellow.bgCyanFunctionSet background color to cyan.bgGreenFunctionSet background color to green.bgMagentaFunctionSet background color to magenta.bgRedFunctionSet background color to red.bgRgb24FunctionSet background color using 24bit rgb. `color` can be a number in range `0x000000` to `0xffffff` or an `Rgb`. To produce the color magenta: ```ts import {bgRgb24 } from "./colors.ts"; bgRgb24("foo", 0xff00ff); bgRgb24("foo", {r: 255, g: 0, b: 255}); ```bgRgb8FunctionSet background color using paletted 8bit colors. https://en.wikipedia.org/wiki/ANSI_escape_code#8-bitbgWhiteFunctionSet background color to white.bgYellowFunctionSet background color to yellow.bindClientPluginsFunctionbindPluginClientFunctionblackFunctionSet text color to black.blueFunctionSet text color to blue.boldFunctionMake the text bold.brightBlackFunctionSet text color to bright black.brightBlueFunctionSet text color to bright blue.brightCyanFunctionSet text color to bright cyan.brightGreenFunctionSet text color to bright green.brightMagentaFunctionSet text color to bright magenta.brightRedFunctionSet text color to bright red.brightWhiteFunctionSet text color to bright white.brightYellowFunctionSet text color to bright yellow.calculateShardIdFunctionCalculates the shard ID for a guild based on its ID.calculateUserDefaultAvatarIndexFunctionCalculates the default avatar index for a given user id.channelFromFunctioncleanupPluginDynamicContributionMutationsFunctioncleanupPluginDynamicSharedContributionsFunctioncleanupPluginEventListenersFunctioncleanupPluginSharedContributionsFunctionclearSharedRegistryInstancesFunctionclonePluginOptionsFunctioncomponentFactoryFunctionReturn a new component instance based on the component type.copyPropertiesFunctioncreateAttachmentOptionFunctioncreateBooleanOptionFunctioncreateChannelOptionFunctioncreateContextScopeFunctioncreateEventFunctionCreates an event with the specified data and run function.createIntegerOptionFunctioncreateMentionableOptionFunctioncreateMiddlewareFunctioncreateNumberOptionFunctioncreatePluginFunctioncreatePluginFunctioncreatePluginApiFunctioncreatePluginApiFunctioncreatePluginConflictErrorFunctioncreatePluginContextFragmentFunctioncreatePluginFactoryFunctioncreatePluginRuntimeRegistryFunctioncreateRoleOptionFunctioncreateSharedKeyFunctioncreateSharedKeyFunctioncreateSharedKeyFunctioncreateSharedRegistryFunctioncreateStringOptionFunctioncreateUserOptionFunctioncreateValidationMetadataFunctioncyanFunctionSet text color to cyan.DeclareFunctiondefineGroupsFunctiondefineGroupsFunctiondefinePluginsFunctiondefinePluginsFunctiondelayFunctionDelays the resolution of a Promise by the specified time.dimFunctionThe text emits only a small amount of light.disposePluginSharedValuesFunctionencodeEmojiFunctionextendContextFunctionExtends the context of a command interaction.fakePromiseFunctionfilterSplitFunctionSplits an array into two arrays based on the result of a predicate function.formatMemoryUsageFunctionFormats memory usage data into a string.fromComponentFunctiongenerateShardInfoFunctiongetColorEnabledFunctionGet whether text color change is enabled or disabled.grayFunctionSet text color to gray.greenFunctionSet text color to green.GroupFunctionGroupFunctionGroupsFunctionGroupsTFunctionhasIntentFunctionhasPluginRequirementFunctionhasPropsFunctionhiddenFunctionMake the text hidden.installPluginClientMapsFunctioninstallPluginMiddlewaresFunctioninverseFunctionInvert background color and text color.isBufferLikeFunctionVerifies that a value is a buffer-like object.isCloudflareWorkerFunctionisGatewayEventNameFunctionisObjectFunctionChecks if a given value is an object.italicFunctionMake the text italic.lazyLoadPackageFunctionLocalesFunctionLocalesTFunctionmagentaFunctionSet text color to magenta.magicImportFunctionMergeOptionsFunctionMerges multiple options objects together, deeply extending objects.middlewaresFunctionMiddlewaresFunctionMixinFunctionnextPluginContributionSequenceFunctionnormalizeEventNameFunctionOptionsFunctionOptionsFunctionorderedPluginContributionsFunctionparseCDNURLFunctionpluginIdentityFunctionreadonlyPluginOptionsFunctionrecordContributionMutationDiagnosticFunctionredFunctionSet text color to red.refreshClientPluginGlobalMiddlewaresFunctionrefreshClientPluginOptionsFunctionremovePluginAnyEventContributionFunctionremovePluginCommandObserverContributionFunctionremovePluginEventContributionFunctionremovePluginEventErrorContributionFunctionremovePluginGatewayDispatchInterceptorContributionFunctionremovePluginHookContributionFunctionremovePluginRestObserverContributionFunctionremovePluginSharedFunctionresetFunctionReset the text modifiedresolveAttachmentFunctionResolves an attachment to a REST API attachment.resolveAttachmentDataFunctionResolves the data of an attachment.resolveBanOptionsFunctionresolveBase64FunctionResolves a base64 data to a data URL.resolveClientPluginIntentsFunctionresolveClientPluginsFunctionresolveColorFunctionResolves the color to a numeric representation.resolveEmojiFunctionresolveFilesFunctionResolves a list of attachments to raw files.resolveGatewayIntentFunctionresolveGatewayIntentsFunctionresolveImageFunctionResolves an image to a base64 data URL.resolvePartialEmojiFunctionresolvePluginIntentsFunctionresolveRawEventDataFunctionrgb24FunctionSet text color using 24bit rgb. `color` can be a number in range `0x000000` to `0xffffff` or an `Rgb`. To produce the color magenta: ```ts import {rgb24 } from "./colors.ts"; rgb24("foo", 0xff00ff); rgb24("foo", {r: 255, g: 0, b: 255}); ```rgb8FunctionSet text color using paletted 8bit colors. https://en.wikipedia.org/wiki/ANSI_escape_code#8-bitrunContextScopesFunctionrunPluginAutocompleteWrappersFunctionrunPluginCommandObserversFunctionrunPluginHooksFunctionrunPluginRegisterFunctionsetColorEnabledFunctionSet changing text color to enabled or disabledsetupClientPluginsFunctionsharedNameFunctionsnowflakeToTimestampFunctionConverts a Discord snowflake to its unix millisecond timestamp.strikethroughFunctionPut horizontal line through the center of the text.stripColorFunctionRemove ANSI escape codes from the string.teardownClientPluginsFunctiontoArrayBufferFunctiontoBufferFunctiontoCamelCaseFunctionConvert a snake_case object to camelCase.toSnakeCaseFunctionConvert a camelCase object to snake_case.underlineFunctionMake the text underline.unknownGatewayIntentBitsFunctionvalidatePluginRequirementsFunctionwhiteFunctionSet text color to white.wrapPluginErrorFunctionyellowFunctionSet text color to yellow.