From 8393a283244e5a6d0893503cf4392fd0e1d04eed Mon Sep 17 00:00:00 2001 From: Zero <175196963+zerofoil@users.noreply.github.com> Date: Mon, 3 Aug 2026 16:27:57 +0200 Subject: [PATCH] Some changes --- app/(docs)/[[...slug]]/page.tsx | 127 +++++++++--------- app/(docs)/layout.tsx | 18 +-- app/layout.tsx | 64 ++++----- components/image-zoom.tsx | 49 +++++++ components/mdx.tsx | 107 ++++++++------- content/docs/(functions)/Bot/botOwnerID.mdx | 10 +- content/docs/(functions)/Bot/botVerified.mdx | 2 +- content/docs/(functions)/Bot/botVersion.mdx | 2 +- .../docs/(functions)/Bot/getBotActivity.mdx | 2 +- content/docs/(functions)/Bot/getBotInvite.mdx | 2 +- content/docs/(functions)/Bot/meta.json | 6 +- .../docs/(functions)/Bot/setBotActivity.mdx | 4 +- .../Channel/cacheChannelMessages.mdx | 6 +- .../Channel/channelPermissionsFor.mdx | 2 +- .../docs/(functions)/Channel/channelTopic.mdx | 6 +- .../docs/(functions)/Channel/cloneChannel.mdx | 8 +- .../docs/(functions)/Channel/createForum.mdx | 4 +- .../docs/(functions)/Channel/editForum.mdx | 6 +- .../Channel/eventChannelParent.mdx | 4 +- .../(functions)/Channel/findServerChannel.mdx | 2 +- .../Channel/getChannelMessages.mdx | 2 +- .../(functions)/Channel/latestMessage.mdx | 2 +- .../(functions)/Channel/mentionChannel.mdx | 6 +- content/docs/(functions)/Channel/meta.json | 6 +- .../(functions)/Channel/removeContains.mdx | 4 +- .../(functions)/Channel/serverChannels.mdx | 2 +- .../(functions)/Channel/setChannelTopic.mdx | 4 +- content/docs/(functions)/Channel/slowmode.mdx | 4 +- .../(functions)/Channel/transcriptChannel.mdx | 2 +- content/docs/(functions)/Channel/vcBefore.mdx | 2 +- .../(functions)/Channel/voiceChannelID.mdx | 2 +- .../(functions)/Cooldown/channelCooldown.mdx | 2 +- .../(functions)/Cooldown/clearCoolDown.mdx | 2 +- .../docs/(functions)/Cooldown/cooldown.mdx | 2 +- .../(functions)/Cooldown/getCooldownTime.mdx | 2 +- content/docs/(functions)/Cooldown/meta.json | 6 +- .../(functions)/Cooldown/serverCooldown.mdx | 2 +- content/docs/(functions)/Date/dateToTime.mdx | 2 +- .../(functions)/Date/memberJoinedCode.mdx | 2 +- content/docs/(functions)/Date/meta.json | 6 +- content/docs/(functions)/Date/timeToDate.mdx | 2 +- content/docs/(functions)/Date/upvoteTime.mdx | 2 +- .../docs/(functions)/Events/eventCreate.mdx | 4 +- .../docs/(functions)/Events/eventDelete.mdx | 4 +- content/docs/(functions)/Events/eventEdit.mdx | 4 +- .../docs/(functions)/Events/eventExists.mdx | 2 +- .../docs/(functions)/Events/eventStart.mdx | 4 +- .../docs/(functions)/Events/getEventInfo.mdx | 2 +- .../docs/(functions)/Events/getEventUsers.mdx | 2 +- content/docs/(functions)/Events/meta.json | 6 +- .../docs/(functions)/Image/imageBorderRad.mdx | 4 +- .../docs/(functions)/Image/imageCreate.mdx | 2 +- content/docs/(functions)/Image/imageCrop.mdx | 2 +- content/docs/(functions)/Image/imageDraw.mdx | 2 +- .../docs/(functions)/Image/imageDrawBack.mdx | 2 +- content/docs/(functions)/Image/imageFill.mdx | 2 +- .../(functions)/Image/imageLineHeight.mdx | 4 +- .../docs/(functions)/Image/imageLoadEmoji.mdx | 2 +- .../(functions)/Image/imageLoadFromURL.mdx | 2 +- .../docs/(functions)/Image/imageOutput.mdx | 6 +- .../(functions)/Image/imagePositionBase.mdx | 2 +- .../(functions)/Image/imageSetOpacity.mdx | 6 +- .../docs/(functions)/Image/imageStroke.mdx | 2 +- .../(functions)/Image/imageStrokeWidth.mdx | 2 +- .../docs/(functions)/Image/imageTextColor.mdx | 6 +- .../docs/(functions)/Image/imageTextFill.mdx | 2 +- .../(functions)/Image/imageTextFillColor.mdx | 6 +- .../(functions)/Image/imageTextStroke.mdx | 49 ++++--- .../Image/imageTextStrokeColor.mdx | 6 +- .../(functions)/Image/imageTextWeight.mdx | 4 +- .../docs/(functions)/Image/imageUseFont.mdx | 2 +- content/docs/(functions)/Image/imageWidth.mdx | 6 +- content/docs/(functions)/Image/meta.json | 6 +- .../(functions)/Interaction/commandName.mdx | 4 +- .../(functions)/Interaction/getOption.mdx | 2 +- .../docs/(functions)/Interaction/meta.json | 6 +- .../docs/(functions)/Member/authorAvatar.mdx | 2 +- content/docs/(functions)/Member/authorID.mdx | 2 +- content/docs/(functions)/Member/ban.mdx | 2 +- .../docs/(functions)/Member/blackListIDs.mdx | 2 +- .../docs/(functions)/Member/boostingSince.mdx | 2 +- .../(functions)/Member/changeNickname.mdx | 2 +- .../docs/(functions)/Member/discriminator.mdx | 2 +- .../docs/(functions)/Member/displayName.mdx | 2 +- .../(functions)/Member/eventNewNickname.mdx | 4 +- .../(functions)/Member/eventOldNickname.mdx | 4 +- .../docs/(functions)/Member/findMember.mdx | 2 +- .../docs/(functions)/Member/getUserBadges.mdx | 2 +- .../docs/(functions)/Member/globalName.mdx | 2 +- .../docs/(functions)/Member/hasAnyPerm.mdx | 2 +- .../docs/(functions)/Member/hasAnyRole.mdx | 2 +- content/docs/(functions)/Member/hasPerms.mdx | 2 +- content/docs/(functions)/Member/hasRoles.mdx | 2 +- content/docs/(functions)/Member/isBanned.mdx | 2 +- .../(functions)/Member/isUserDMEnabled.mdx | 2 +- content/docs/(functions)/Member/kick.mdx | 2 +- .../docs/(functions)/Member/memberSearch.mdx | 2 +- .../(functions)/Member/membersWithStatus.mdx | 2 +- content/docs/(functions)/Member/mention.mdx | 2 +- content/docs/(functions)/Member/meta.json | 6 +- content/docs/(functions)/Member/moveUser.mdx | 2 +- content/docs/(functions)/Member/muteUser.mdx | 2 +- content/docs/(functions)/Member/nickname.mdx | 2 +- content/docs/(functions)/Member/status.mdx | 2 +- content/docs/(functions)/Member/unban.mdx | 2 +- .../Member/upvoteReferralUserID.mdx | 2 +- content/docs/(functions)/Member/user.mdx | 2 +- .../docs/(functions)/Member/userAvatar.mdx | 2 +- .../docs/(functions)/Member/userBanner.mdx | 2 +- .../(functions)/Member/userConnectedVC.mdx | 2 +- .../docs/(functions)/Member/userExists.mdx | 2 +- content/docs/(functions)/Member/userID.mdx | 2 +- content/docs/(functions)/Member/userPerms.mdx | 2 +- .../docs/(functions)/Member/userReacted.mdx | 2 +- .../docs/(functions)/Member/userRoleColor.mdx | 2 +- content/docs/(functions)/Member/userTag.mdx | 2 +- content/docs/(functions)/Member/username.mdx | 2 +- .../docs/(functions)/Member/usersBanned.mdx | 2 +- .../(functions)/Member/usersInChannel.mdx | 2 +- .../docs/(functions)/Member/usersTyping.mdx | 2 +- .../docs/(functions)/Member/usersWithRole.mdx | 2 +- .../docs/(functions)/Message/argsCheck.mdx | 10 +- .../docs/(functions)/Message/argsCount.mdx | 2 +- .../docs/(functions)/Message/awaitMessage.mdx | 4 +- .../(functions)/Message/deleteCommand.mdx | 6 +- .../Message/disableChannelMentions.mdx | 4 +- .../Message/disableEveryoneMentions.mdx | 2 +- .../docs/(functions)/Message/editEmbed.mdx | 2 +- content/docs/(functions)/Message/editIn.mdx | 4 +- .../(functions)/Message/emojiToString.mdx | 2 +- .../(functions)/Message/emojisFromMessage.mdx | 4 +- .../Message/enableEveryoneMentions.mdx | 2 +- content/docs/(functions)/Message/getEmbed.mdx | 2 +- .../docs/(functions)/Message/getMessage.mdx | 8 +- .../Message/getMessageReactions.mdx | 10 +- .../(functions)/Message/getReactionCount.mdx | 2 +- .../docs/(functions)/Message/hasEmbeds.mdx | 4 +- content/docs/(functions)/Message/meta.json | 6 +- .../docs/(functions)/Message/pinMessage.mdx | 6 +- content/docs/(functions)/Message/poll.mdx | 2 +- .../Message/referenceChannelID.mdx | 2 +- content/docs/(functions)/Message/reply.mdx | 6 +- .../Message/sendCrosspostingMessage.mdx | 6 +- .../docs/(functions)/Message/sendMessage.mdx | 2 +- .../docs/(functions)/Message/sendWebhook.mdx | 4 +- .../(functions)/Message/sentMessageID.mdx | 4 +- content/docs/(functions)/Random/meta.json | 6 +- content/docs/(functions)/Random/random.mdx | 2 +- .../(functions)/Random/randomChannelID.mdx | 4 +- .../(functions)/Random/randomTextBiased.mdx | 2 +- .../docs/(functions)/Request/httpRequest.mdx | 2 +- .../(functions)/Request/httpRequestHeader.mdx | 2 +- .../(functions)/Request/httpRequestStatus.mdx | 2 +- content/docs/(functions)/Request/meta.json | 6 +- .../(functions)/Role/blackListRoleIDs.mdx | 2 +- content/docs/(functions)/Role/highestRole.mdx | 4 +- content/docs/(functions)/Role/lowestRole.mdx | 4 +- content/docs/(functions)/Role/mentionRole.mdx | 6 +- content/docs/(functions)/Role/meta.json | 6 +- .../docs/(functions)/Role/modifyUserRoles.mdx | 4 +- content/docs/(functions)/Role/roleExists.mdx | 2 +- content/docs/(functions)/Role/roleIcon.mdx | 8 +- content/docs/(functions)/Role/setRoles.mdx | 2 +- .../Server/createAutomodKeyword.mdx | 4 +- .../docs/(functions)/Server/deleteEmojis.mdx | 2 +- .../(functions)/Server/editAutomodKeyword.mdx | 4 +- .../docs/(functions)/Server/emojiCount.mdx | 2 +- .../docs/(functions)/Server/emojiExists.mdx | 4 +- .../docs/(functions)/Server/getInviteInfo.mdx | 4 +- .../(functions)/Server/getServerInvite.mdx | 2 +- content/docs/(functions)/Server/meta.json | 6 +- .../(functions)/Server/resolveEmojiID.mdx | 6 +- .../docs/(functions)/Server/securityPause.mdx | 8 +- .../(functions)/Stickers/createSticker.mdx | 4 +- .../(functions)/Stickers/deleteSticker.mdx | 2 +- .../docs/(functions)/Stickers/editSticker.mdx | 4 +- .../(functions)/Stickers/messageStickers.mdx | 2 +- content/docs/(functions)/Stickers/meta.json | 6 +- .../(functions)/Stickers/serverStickers.mdx | 2 +- content/docs/(functions)/Stickers/sticker.mdx | 2 +- .../(functions)/Text/Array/arrayClear.mdx | 2 +- .../(functions)/Text/Array/arrayConcat.mdx | 2 +- .../(functions)/Text/Array/arrayCount.mdx | 2 +- .../(functions)/Text/Array/arrayCreate.mdx | 2 +- .../Text/Array/arrayElementCount.mdx | 2 +- .../(functions)/Text/Array/arrayFilter.mdx | 2 +- .../docs/(functions)/Text/Array/arrayGet.mdx | 2 +- .../(functions)/Text/Array/arrayInclude.mdx | 2 +- .../docs/(functions)/Text/Array/arrayJoin.mdx | 2 +- .../(functions)/Text/Array/arrayLength.mdx | 2 +- .../docs/(functions)/Text/Array/arrayLoop.mdx | 2 +- .../docs/(functions)/Text/Array/arrayMap.mdx | 2 +- .../docs/(functions)/Text/Array/arrayPop.mdx | 2 +- .../docs/(functions)/Text/Array/arrayPush.mdx | 2 +- .../(functions)/Text/Array/arrayRemove.mdx | 2 +- .../(functions)/Text/Array/arrayReverse.mdx | 2 +- .../(functions)/Text/Array/arraySearch.mdx | 2 +- .../docs/(functions)/Text/Array/arraySet.mdx | 2 +- .../(functions)/Text/Array/arrayShift.mdx | 2 +- .../(functions)/Text/Array/arrayShuffle.mdx | 2 +- .../(functions)/Text/Array/arraySlice.mdx | 2 +- .../docs/(functions)/Text/Array/arraySort.mdx | 2 +- .../(functions)/Text/Array/arrayUnique.mdx | 2 +- .../(functions)/Text/Array/arrayUnshift.mdx | 2 +- .../(functions)/Text/Components/addMenu.mdx | 4 +- .../(functions)/Text/Components/awaitMenu.mdx | 2 +- .../Text/Components/buttonEmoji.mdx | 2 +- .../(functions)/Text/Components/buttonID.mdx | 2 +- .../Text/Components/buttonIsDisabled.mdx | 2 +- .../Text/Components/buttonLabel.mdx | 2 +- .../Text/Components/buttonStyle.mdx | 2 +- .../(functions)/Text/Components/buttonURL.mdx | 2 +- .../Text/Components/disableButtons.mdx | 2 +- .../Text/Components/disableMenu.mdx | 2 +- .../(functions)/Text/Components/editMenu.mdx | 4 +- .../Text/Components/enableButtons.mdx | 2 +- .../Text/Components/enableMenu.mdx | 2 +- .../Text/Components/eventSelected.mdx | 2 +- .../Text/Components/eventTargetID.mdx | 2 +- .../(functions)/Text/Components/menuId.mdx | 2 +- .../Text/Components/removeEmbed.mdx | 4 +- .../Text/Components/removeMenu.mdx | 2 +- .../Text/Condition/checkCondition.mdx | 2 +- .../Text/Condition/conditional.mdx | 2 +- .../docs/(functions)/Text/Condition/else.mdx | 2 +- .../(functions)/Text/Condition/elseif.mdx | 2 +- .../docs/(functions)/Text/Condition/endIf.mdx | 2 +- .../(functions)/Text/Condition/endelseif.mdx | 2 +- .../docs/(functions)/Text/Condition/if.mdx | 2 +- .../(functions)/Text/Embed/attachment.mdx | 2 +- content/docs/(functions)/Text/Math/abs.mdx | 2 +- content/docs/(functions)/Text/Math/ceil.mdx | 2 +- content/docs/(functions)/Text/Math/floor.mdx | 2 +- .../docs/(functions)/Text/Math/mathMax.mdx | 2 +- .../docs/(functions)/Text/Math/mathMin.mdx | 2 +- .../Text/Object/ObjectIncrease.mdx | 2 +- .../Text/Object/ObjectKeyExists.mdx | 2 +- .../(functions)/Text/Object/ObjectKeys.mdx | 2 +- .../(functions)/Text/Object/ObjectLoop.mdx | 2 +- .../(functions)/Text/Object/ObjectMerge.mdx | 2 +- .../(functions)/Text/Object/ObjectRemove.mdx | 2 +- .../Text/Object/ObjectRenameKey.mdx | 2 +- .../(functions)/Text/Object/ObjectValues.mdx | 2 +- .../Text/Object/addObjectProperty.mdx | 2 +- .../(functions)/Text/Object/createObject.mdx | 2 +- .../(functions)/Text/Object/getObjectKeys.mdx | 2 +- .../Text/Object/getObjectProperty.mdx | 2 +- .../(functions)/Text/Regex/regexCheck.mdx | 2 +- .../(functions)/Text/Regex/regexReplace.mdx | 2 +- content/docs/(functions)/Text/buffer.mdx | 4 +- .../docs/(functions)/Text/checkContains.mdx | 2 +- content/docs/(functions)/Text/customEmoji.mdx | 2 +- .../docs/(functions)/Text/filterMessage.mdx | 2 +- .../(functions)/Text/filterMessageWords.mdx | 2 +- content/docs/(functions)/Text/findChars.mdx | 2 +- content/docs/(functions)/Text/findNumbers.mdx | 2 +- .../(functions)/Text/findSpecialChars.mdx | 2 +- content/docs/(functions)/Text/indexOf.mdx | 2 +- .../(functions)/Text/isChannelMention.mdx | 2 +- .../docs/(functions)/Text/isUserMention.mdx | 2 +- .../(functions)/Text/isandhas/isConnected.mdx | 2 +- .../(functions)/Text/isandhas/isStreaming.mdx | 2 +- content/docs/(functions)/Text/mentionType.mdx | 2 +- content/docs/(functions)/Text/mentioned.mdx | 2 +- content/docs/(functions)/Text/meta.json | 28 ++-- content/docs/(functions)/Text/numToWord.mdx | 2 +- .../docs/(functions)/Text/numberSeparator.mdx | 2 +- .../(functions)/Text/only/onlyForChannels.mdx | 2 +- .../Text/only/onlyIfMessageContains.mdx | 2 +- content/docs/(functions)/Text/padLeft.mdx | 2 +- content/docs/(functions)/Text/padRight.mdx | 2 +- .../docs/(functions)/Text/stringEndsWith.mdx | 2 +- .../(functions)/Text/stringStartsWith.mdx | 2 +- content/docs/(functions)/Text/textLength.mdx | 2 +- content/docs/(functions)/Text/textShuffle.mdx | 2 +- content/docs/(functions)/Text/textSlice.mdx | 2 +- .../Text/textSplit/removeSplitTextElement.mdx | 2 +- content/docs/(functions)/Text/textTrim.mdx | 2 +- content/docs/(functions)/Text/uri.mdx | 2 +- content/docs/(functions)/Text/void.mdx | 2 +- .../(functions)/Threads/addUsersToThread.mdx | 6 +- .../(functions)/Threads/archiveThread.mdx | 6 +- .../docs/(functions)/Threads/closePost.mdx | 6 +- .../docs/(functions)/Threads/createPost.mdx | 2 +- .../docs/(functions)/Threads/createThread.mdx | 4 +- .../docs/(functions)/Threads/deletePost.mdx | 4 +- .../docs/(functions)/Threads/deletePosts.mdx | 4 +- content/docs/(functions)/Threads/editPost.mdx | 4 +- content/docs/(functions)/Threads/lockPost.mdx | 6 +- .../docs/(functions)/Threads/lockThread.mdx | 6 +- content/docs/(functions)/Threads/meta.json | 6 +- content/docs/(functions)/Threads/pinPost.mdx | 6 +- .../Threads/removeUsersFromThread.mdx | 6 +- content/docs/(functions)/Timeout/meta.json | 6 +- .../(functions)/Timeout/timeoutAction.mdx | 2 +- .../docs/(functions)/Timeout/timeoutBy.mdx | 2 +- .../(functions)/Timeout/timeoutReason.mdx | 2 +- .../(functions)/Timeout/userGetTimeout.mdx | 2 +- .../(functions)/Timeout/userRemoveTimeout.mdx | 2 +- .../(functions)/Timeout/userSetTimeout.mdx | 2 +- .../docs/(functions)/Useful/callFunction.mdx | 2 +- .../docs/(functions)/Useful/commandCode.mdx | 2 +- .../docs/(functions)/Useful/deleteTrigger.mdx | 2 +- .../docs/(functions)/Useful/editTrigger.mdx | 6 +- .../docs/(functions)/Useful/endForEach.mdx | 2 +- .../docs/(functions)/Useful/endFunction.mdx | 4 +- .../docs/(functions)/Useful/endTimeout.mdx | 2 +- content/docs/(functions)/Useful/forEach.mdx | 4 +- content/docs/(functions)/Useful/function.mdx | 2 +- content/docs/(functions)/Useful/getToken.mdx | 4 +- .../docs/(functions)/Useful/getTrigger.mdx | 4 +- .../docs/(functions)/Useful/ignoreErrors.mdx | 2 +- .../(functions)/Useful/includeLibrary.mdx | 2 +- .../docs/(functions)/Useful/jsonRequest.mdx | 4 +- content/docs/(functions)/Useful/meta.json | 6 +- content/docs/(functions)/Useful/return.mdx | 4 +- content/docs/(functions)/Useful/stop.mdx | 2 +- .../docs/(functions)/Useful/triggerExists.mdx | 2 +- .../Variables/increaseChannelVar.mdx | 4 +- .../Variables/increaseServerVar.mdx | 4 +- .../(functions)/Variables/increaseUserVar.mdx | 4 +- .../docs/(functions)/Variables/initVar.mdx | 10 +- content/docs/(functions)/Variables/meta.json | 6 +- .../(functions)/Variables/userVarRank.mdx | 2 +- .../(functions)/Variables/viewChannelVars.mdx | 2 +- .../(functions)/Variables/viewServerVars.mdx | 2 +- .../(functions)/Variables/viewUserVars.mdx | 2 +- content/docs/(functions)/meta.json | 64 ++++----- content/docs/Changelogs/meta.json | 6 +- content/docs/Changelogs/v1.4.4.mdx | 6 +- .../docs/CodeReferences/ref.expression.mdx | 2 +- content/docs/Contribution_Info/meta.json | 6 +- content/docs/Guide/meta.json | 24 ++-- content/docs/Legal/meta.json | 8 +- content/docs/Other/curl.mdx | 2 +- content/docs/Other/meta.json | 8 +- content/docs/Trigger/1.triggers.mdx | 49 ++++--- content/docs/Trigger/meta.json | 6 +- content/docs/Trigger/word.mdx | 2 +- content/docs/Tutorials/meta.json | 6 +- content/docs/index.mdx | 8 +- content/docs/meta.json | 22 ++- lib/layout.shared.tsx | 62 +++++---- lib/shared.ts | 16 +-- lib/source.ts | 55 ++++---- old | 1 - package.json | 9 +- pnpm-lock.yaml | 20 +++ .../join-event.png} | Bin .../slash-cmd.png} | Bin .../word.png} | Bin scripts/build-docs-pages.mjs | 97 +++++++------ source.config.ts | 66 +++++---- styles/image-zoom.css | 77 +++++++++++ 354 files changed, 1095 insertions(+), 933 deletions(-) create mode 100644 components/image-zoom.tsx delete mode 160000 old rename public/images/guide/{get-started/get-started-join-event.png => getting-started/join-event.png} (100%) rename public/images/guide/{get-started/get-started-slash-cmd.png => getting-started/slash-cmd.png} (100%) rename public/images/guide/{get-started/get-started-word.png => getting-started/word.png} (100%) create mode 100644 styles/image-zoom.css diff --git a/app/(docs)/[[...slug]]/page.tsx b/app/(docs)/[[...slug]]/page.tsx index 329c7f30..573bf96e 100644 --- a/app/(docs)/[[...slug]]/page.tsx +++ b/app/(docs)/[[...slug]]/page.tsx @@ -1,73 +1,78 @@ -import { getPageMarkdownUrl, source } from '@/lib/source'; +import { getPageMarkdownUrl, source } from "@/lib/source"; import { - DocsBody, - DocsDescription, - DocsPage, - DocsTitle, - MarkdownCopyButton, - ViewOptionsPopover, -} from 'fumadocs-ui/layouts/docs/page'; -import { notFound } from 'next/navigation'; -import { getMDXComponents } from '@/components/mdx'; -import type { Metadata } from 'next'; -import { createRelativeLink } from 'fumadocs-ui/mdx'; -import { appName, gitConfig, socialImage } from '@/lib/shared'; + DocsBody, + DocsDescription, + DocsPage, + DocsTitle, + MarkdownCopyButton, + ViewOptionsPopover, +} from "fumadocs-ui/layouts/docs/page"; +import { notFound } from "next/navigation"; +import { getMDXComponents } from "@/components/mdx"; +import type { Metadata } from "next"; +import { createRelativeLink } from "fumadocs-ui/mdx"; +import { appName, gitConfig, socialImage, appDescription } from "@/lib/shared"; -export default async function Page(props: PageProps<'/[[...slug]]'>) { - const params = await props.params; - const page = source.getPage(params.slug); - if (!page) notFound(); +export default async function Page(props: PageProps<"/[[...slug]]">) { + const params = await props.params; + const page = source.getPage(params.slug); + if (!page) notFound(); - const MDX = page.data.body; - const markdownUrl = getPageMarkdownUrl(page).url; + const MDX = page.data.body; + const markdownUrl = getPageMarkdownUrl(page).url; - return ( - - {page.data.title} - {page.data.description} -
- - -
- - - -
- ); + return ( + + {page.data.title} + + {page.data.description} + +
+ + +
+ + + +
+ ); } export async function generateStaticParams() { - return source.generateParams(); + return source.generateParams(); } -export async function generateMetadata(props: PageProps<'/[[...slug]]'>): Promise { - const params = await props.params; - const page = source.getPage(params.slug); - if (!page) notFound(); +export async function generateMetadata( + props: PageProps<"/[[...slug]]">, +): Promise { + const params = await props.params; + const page = source.getPage(params.slug); + if (!page) notFound(); - // Mirrors the old VuePress `dynamic-meta-plugin`: " | Custom Command". - const social = page.data.title ? `${page.data.title} | ${appName}` : `${appName} Documentation`; + const social = page.data.title + ? `${page.data.title} | ${appName}` + : `${appName} Documentation`; - return { - title: page.data.title, - description: page.data.description, - openGraph: { - title: social, - description: page.data.description, - images: socialImage, - }, - twitter: { - title: social, - description: page.data.description, - images: socialImage, - }, - }; + return { + title: page.data.title, + description: appDescription, + openGraph: { + title: social, + description: appDescription, + images: socialImage, + }, + twitter: { + card: "summary", + title: social, + description: appDescription, + images: socialImage, + }, + }; } diff --git a/app/(docs)/layout.tsx b/app/(docs)/layout.tsx index 0c2bf056..d2e715bf 100644 --- a/app/(docs)/layout.tsx +++ b/app/(docs)/layout.tsx @@ -1,11 +1,11 @@ -import { source } from '@/lib/source'; -import { DocsLayout } from 'fumadocs-ui/layouts/docs'; -import { baseOptions } from '@/lib/layout.shared'; +import { source } from "@/lib/source"; +import { DocsLayout } from "fumadocs-ui/layouts/docs"; +import { baseOptions } from "@/lib/layout.shared"; -export default function Layout({ children }: LayoutProps<'/'>) { - return ( - - {children} - - ); +export default function Layout({ children }: LayoutProps<"/">) { + return ( + + {children} + + ); } diff --git a/app/layout.tsx b/app/layout.tsx index a2ef9a85..0eec4fa4 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,44 +1,44 @@ -import { Inter } from 'next/font/google'; -import type { Metadata, Viewport } from 'next'; -import { Provider } from '@/components/provider'; -import { appDescription, appName, siteUrl, socialImage } from '@/lib/shared'; -import './global.css'; +import { Inter } from "next/font/google"; +import type { Metadata, Viewport } from "next"; +import { Provider } from "@/components/provider"; +import { appDescription, appName, siteUrl, socialImage } from "@/lib/shared"; +import "./global.css"; const inter = Inter({ - subsets: ['latin'], + subsets: ["latin"], }); export const metadata: Metadata = { - metadataBase: new URL(siteUrl), - title: { - // Matches the old VuePress `dynamic-meta-plugin` output. - template: `%s | ${appName}`, - default: `${appName} Documentation`, - }, - description: appDescription, - icons: { - icon: socialImage, - }, - openGraph: { + metadataBase: new URL(siteUrl), + title: { + template: `%s | ${appName}`, + default: `${appName} Documentation`, + }, description: appDescription, - images: socialImage, - }, - twitter: { - description: appDescription, - images: socialImage, - }, + icons: { + icon: socialImage, + }, + openGraph: { + description: appDescription, + images: socialImage, + }, + twitter: { + card: "summary", + description: appDescription, + images: socialImage, + }, }; export const viewport: Viewport = { - themeColor: '#74b0f7', + themeColor: "#74b0f7", }; -export default function Layout({ children }: LayoutProps<'/'>) { - return ( - - - {children} - - - ); +export default function Layout({ children }: LayoutProps<"/">) { + return ( + + + {children} + + + ); } diff --git a/components/image-zoom.tsx b/components/image-zoom.tsx new file mode 100644 index 00000000..3b2a82f7 --- /dev/null +++ b/components/image-zoom.tsx @@ -0,0 +1,49 @@ +'use client'; + +import { Image, type ImageProps } from 'fumadocs-core/framework'; +import type { ComponentProps } from 'react'; +import Zoom, { type UncontrolledProps } from 'react-medium-image-zoom'; +import '../styles/image-zoom.css'; + +export type ImageZoomProps = ImageProps & { + /** + * Image props when zoom in + */ + zoomInProps?: ComponentProps<'img'>; + + /** + * Props for `react-medium-image-zoom` + */ + rmiz?: UncontrolledProps; +}; + +function getImageSrc(src: ImageProps['src']): string { + if (typeof src === 'string') return src; + + if (typeof src === 'object') { + // Next.js + if ('default' in src) return (src as { default: { src: string } }).default.src; + return src.src; + } + + return ''; +} + +export function ImageZoom({ zoomInProps, children, rmiz, ...props }: ImageZoomProps) { + return ( + + {children ?? ( + + )} + + ); +} diff --git a/components/mdx.tsx b/components/mdx.tsx index 8483807e..71fc1cb1 100644 --- a/components/mdx.tsx +++ b/components/mdx.tsx @@ -1,60 +1,67 @@ -import defaultMdxComponents from 'fumadocs-ui/mdx'; -import { Accordion, Accordions } from 'fumadocs-ui/components/accordion'; -import type { MDXComponents } from 'mdx/types'; -import type { ComponentProps, ComponentType } from 'react'; -import { Badge } from '@/components/badge'; -import { Arg } from '@/components/arg'; -import * as Discord from '@/components/discord'; - -// Fumadocs types this against next/image's props, whose `src` is a union that -// no longer overlaps with the plain `` props MDX hands us. The runtime -// component is happy with either. -const NextImage = defaultMdxComponents.img as ComponentType>; - -/** - * Fumadocs renders markdown images with next/image, which needs intrinsic - * dimensions. `remarkImage` supplies them for local files by rewriting the path - * into a static import, but an external URL only gets sized by fetching it at - * build time — which we deliberately don't do, because a lot of the linked - * Discord CDN attachments are long dead (see `source.config.ts`). Those nodes - * are therefore left as a plain string `src` with no width or height. - * - * next/image throws on the missing dimensions only when NODE_ENV isn't - * production, so `next build` renders them while `next dev` returns a 500 for - * every page that holds one — 70 pages here. Emit a plain instead, which - * is what the old VuePress site served for these anyway. - */ -function Image({ src, className, ...props }: ComponentProps<'img'>) { - if (typeof src === 'string' && props.width === undefined) { +import defaultMdxComponents from "fumadocs-ui/mdx"; +import { Accordion, Accordions } from "fumadocs-ui/components/accordion"; +import type { MDXComponents } from "mdx/types"; +import type { ComponentProps, ComponentType } from "react"; +import { Badge } from "@/components/badge"; +import { Arg } from "@/components/arg"; +import * as Discord from "@/components/discord"; +import { ImageZoom } from "fumadocs-ui/components/image-zoom"; + +const NextImage = defaultMdxComponents.img as ComponentType< + ComponentProps<"img"> +>; + +const Image = ({ + className, + src, + width, + height, + ...props +}: ComponentProps<"img">) => { + const classes = ["rounded-lg", className].filter(Boolean).join(" "); + + const resolvedSrc = typeof src === "string" ? src : (src as any)?.src; + const resolvedWidth = width || (src as any)?.width; + const resolvedHeight = height || (src as any)?.height; + + if (resolvedWidth && resolvedHeight) { + return ( + + ); + } + return ( - + ); - } - - return ; -} +}; export function getMDXComponents(components?: MDXComponents) { - return { - ...defaultMdxComponents, - img: Image, - Accordion, - Accordions, - Badge, - Arg, - ...Discord, - ...components, - } satisfies MDXComponents; + return { + ...defaultMdxComponents, + img: Image, + Accordion, + Accordions, + Badge, + Arg, + ...Discord, + ...components, + } satisfies MDXComponents; } export const useMDXComponents = getMDXComponents; declare global { - type MDXProvidedComponents = ReturnType; + type MDXProvidedComponents = ReturnType; } diff --git a/content/docs/(functions)/Bot/botOwnerID.mdx b/content/docs/(functions)/Bot/botOwnerID.mdx index a3f6e50b..6c4a96dc 100644 --- a/content/docs/(functions)/Bot/botOwnerID.mdx +++ b/content/docs/(functions)/Bot/botOwnerID.mdx @@ -8,13 +8,13 @@ This function returns the Discord ID of the user(s) who own or manage the bot. ## Usage -```bash +```php $botOwnerID ``` Returns a single ID if there's only one owner, or a comma-separated list of IDs if there are multiple owners (e.g., a team). -```bash +```php $botOwnerID[separator] ``` @@ -30,7 +30,7 @@ Returns a list of IDs separated by the specified `separator`. If the bot has a single owner, this will return their ID. -```bash +```php $botOwnerID ``` @@ -38,13 +38,13 @@ $botOwnerID If the bot belongs to a team, this will return the IDs of all team members separated by a pipe (|) character. -```bash +```php $botOwnerID[|] ``` **Example 3: Get the bot owner IDs (team) with the default comma separator:** -```bash +```php $botOwnerID ``` diff --git a/content/docs/(functions)/Bot/botVerified.mdx b/content/docs/(functions)/Bot/botVerified.mdx index 97597afa..25661bac 100644 --- a/content/docs/(functions)/Bot/botVerified.mdx +++ b/content/docs/(functions)/Bot/botVerified.mdx @@ -6,7 +6,7 @@ This function checks if a Discord bot is verified. A verified bot has been revie ## Usage -```bash +```php $botVerified[Bot ID] ``` diff --git a/content/docs/(functions)/Bot/botVersion.mdx b/content/docs/(functions)/Bot/botVersion.mdx index a5e388c1..e95926a2 100644 --- a/content/docs/(functions)/Bot/botVersion.mdx +++ b/content/docs/(functions)/Bot/botVersion.mdx @@ -8,7 +8,7 @@ This function returns the version of your bot. The `$botVersion` function doesn't require any arguments. Simply use it in your commands to retrieve the current bot version. -```bash +```php $botVersion ``` diff --git a/content/docs/(functions)/Bot/getBotActivity.mdx b/content/docs/(functions)/Bot/getBotActivity.mdx index 023b63a6..2cd46bcd 100644 --- a/content/docs/(functions)/Bot/getBotActivity.mdx +++ b/content/docs/(functions)/Bot/getBotActivity.mdx @@ -8,7 +8,7 @@ Retrieves the bot's current activity status (e.g., "Playing...", "Listening to.. ## Usage -```bash +```php $getBotActivity[text/type] ``` diff --git a/content/docs/(functions)/Bot/getBotInvite.mdx b/content/docs/(functions)/Bot/getBotInvite.mdx index e084b313..f798707f 100644 --- a/content/docs/(functions)/Bot/getBotInvite.mdx +++ b/content/docs/(functions)/Bot/getBotInvite.mdx @@ -6,7 +6,7 @@ Generate an invite link for your bot. ## Usage -```bash +```php $getBotInvite[permission;permission;permission...] ``` diff --git a/content/docs/(functions)/Bot/meta.json b/content/docs/(functions)/Bot/meta.json index 243ead13..4fcbaf2d 100644 --- a/content/docs/(functions)/Bot/meta.json +++ b/content/docs/(functions)/Bot/meta.json @@ -1,6 +1,4 @@ { - "title": "Bot Functions", - "pages": [ - "..." - ] + "title": "Bot Functions", + "pages": ["..."] } diff --git a/content/docs/(functions)/Bot/setBotActivity.mdx b/content/docs/(functions)/Bot/setBotActivity.mdx index 334fee7a..58fab048 100644 --- a/content/docs/(functions)/Bot/setBotActivity.mdx +++ b/content/docs/(functions)/Bot/setBotActivity.mdx @@ -8,7 +8,7 @@ Set your bot's activity status (the text displayed under the bot's name). ## Usage -```bash +```php $setBotActivity[activity type;activity text] ``` @@ -21,7 +21,7 @@ $setBotActivity[activity type;activity text] **Example:** Sets the bot's activity to "Listening to The Cosmos". -```bash +```php $setBotActivity[listening;The Cosmos] ``` diff --git a/content/docs/(functions)/Channel/cacheChannelMessages.mdx b/content/docs/(functions)/Channel/cacheChannelMessages.mdx index 7908ef32..0d81969f 100644 --- a/content/docs/(functions)/Channel/cacheChannelMessages.mdx +++ b/content/docs/(functions)/Channel/cacheChannelMessages.mdx @@ -8,7 +8,7 @@ This command forces the bot to cache the latest messages from a channel. Caching ## Usage -```bash +```php $cacheChannelMessages[Channel ID (optional)] ``` @@ -23,13 +23,13 @@ $cacheChannelMessages[Channel ID (optional)] **Cache messages from the current channel:** -```bash +```php $cacheChannelMessages ``` **Cache messages from a specific channel (using its ID):** -```bash +```php $cacheChannelMessages[123456789012345678] ``` diff --git a/content/docs/(functions)/Channel/channelPermissionsFor.mdx b/content/docs/(functions)/Channel/channelPermissionsFor.mdx index 2d456a6d..13984774 100644 --- a/content/docs/(functions)/Channel/channelPermissionsFor.mdx +++ b/content/docs/(functions)/Channel/channelPermissionsFor.mdx @@ -6,7 +6,7 @@ This function retrieves the permissions a specific user or role has within a giv ## Usage -```bash +```php $channelPermissionsFor[userID/roleID] $channelPermissionsFor[channelID;userID/roleID] ``` diff --git a/content/docs/(functions)/Channel/channelTopic.mdx b/content/docs/(functions)/Channel/channelTopic.mdx index eea5115d..535fac22 100644 --- a/content/docs/(functions)/Channel/channelTopic.mdx +++ b/content/docs/(functions)/Channel/channelTopic.mdx @@ -6,7 +6,7 @@ Retrieves the topic (or description) of a channel. ## Syntax -```bash +```php $channelTopic $channelTopic[channelID] ``` @@ -19,12 +19,12 @@ $channelTopic[channelID] **1. Get the topic of the current channel:** -```bash +```php $channelTopic ``` **2. Get the topic of a specific channel:** -```bash +```php $channelTopic[123456789012345678] ``` \ No newline at end of file diff --git a/content/docs/(functions)/Channel/cloneChannel.mdx b/content/docs/(functions)/Channel/cloneChannel.mdx index abfd096f..5263136b 100644 --- a/content/docs/(functions)/Channel/cloneChannel.mdx +++ b/content/docs/(functions)/Channel/cloneChannel.mdx @@ -6,7 +6,7 @@ Clones a channel, duplicating its permissions. ## Usage -```bash +```php $cloneChannel[Channel ID;New Name (optional);Category (optional);Return ID (yes/no, optional)] ``` @@ -23,7 +23,7 @@ $cloneChannel[Channel ID;New Name (optional);Category (optional);Return ID (yes/ This example clones the channel with the ID "General" and names the clone "General-Cloned". -```bash +```php $cloneChannel[General;General-Cloned] ``` @@ -31,7 +31,7 @@ $cloneChannel[General;General-Cloned] This example clones the channel with the ID "General", names the clone "General-Cloned", and places it in the category named "Category1". -```bash +```php $cloneChannel[General;General-Cloned;Category1] ``` @@ -39,6 +39,6 @@ $cloneChannel[General;General-Cloned;Category1] This clones the channel with the ID "General" and returns the ID of the newly created channel. -```bash +```php $cloneChannel[General;;;yes] ``` \ No newline at end of file diff --git a/content/docs/(functions)/Channel/createForum.mdx b/content/docs/(functions)/Channel/createForum.mdx index 6663250a..652385b4 100644 --- a/content/docs/(functions)/Channel/createForum.mdx +++ b/content/docs/(functions)/Channel/createForum.mdx @@ -6,7 +6,7 @@ Create a new forum channel within your Discord server. ## Usage -```bash +```php $createForum[ {name=Forum name} {topic=Forum topic and guidelines (optional)} @@ -59,7 +59,7 @@ Tags can be defined in two formats: ### Example: -```bash +```php $createForum[ {name=Opinions} {topic=Share your thoughts and opinions on various topics.} diff --git a/content/docs/(functions)/Channel/editForum.mdx b/content/docs/(functions)/Channel/editForum.mdx index efb652ea..3cfac2f8 100644 --- a/content/docs/(functions)/Channel/editForum.mdx +++ b/content/docs/(functions)/Channel/editForum.mdx @@ -6,7 +6,7 @@ Edits an existing forum channel. This allows you to modify various aspects of th ## Usage -```bash +```php $editForum[ {id=Forum Channel ID} {name=Forum name (optional)} @@ -90,7 +90,7 @@ You can repeat the `{tag}` or `{moderator_tag}` parameters as many times as need Adding a tag with an emoji: -```bash +```php $editForum[ {id=123456789} {tag=:heart: Love} @@ -101,7 +101,7 @@ $editForum[ Changing the forum name: -```bash +```php $editForum[ {id=123456789} {name=My cute new forum name} diff --git a/content/docs/(functions)/Channel/eventChannelParent.mdx b/content/docs/(functions)/Channel/eventChannelParent.mdx index 780d30a2..89c42e2a 100644 --- a/content/docs/(functions)/Channel/eventChannelParent.mdx +++ b/content/docs/(functions)/Channel/eventChannelParent.mdx @@ -10,7 +10,7 @@ Returns the ID of the category/forum channel under which a channel or thread was Just use `$eventChannelParent` within the code of a channel-based trigger. It will be replaced with the category/forum's ID. -```bash +```php $eventChannelParent ``` @@ -18,7 +18,7 @@ $eventChannelParent Let's say you have a channel trigger that runs when a new channel is created. You can use `$eventChannelParent` to send a message to a specific log channel informing administrators which category the new channel was created under: -```bash +```php $channelSendMessage[LogChannelID;A new channel ($eventChannelName) was created under category ID: $eventChannelParent] ``` diff --git a/content/docs/(functions)/Channel/findServerChannel.mdx b/content/docs/(functions)/Channel/findServerChannel.mdx index 610c2c23..ac8dee14 100644 --- a/content/docs/(functions)/Channel/findServerChannel.mdx +++ b/content/docs/(functions)/Channel/findServerChannel.mdx @@ -8,7 +8,7 @@ The last parameter determines what the function returns: the channel's ID or `un ## Syntax -```bash +```php $findServerChannel[query;returnCurrentChannel (yes/no) (optional)] ``` diff --git a/content/docs/(functions)/Channel/getChannelMessages.mdx b/content/docs/(functions)/Channel/getChannelMessages.mdx index 1119c799..baf76516 100644 --- a/content/docs/(functions)/Channel/getChannelMessages.mdx +++ b/content/docs/(functions)/Channel/getChannelMessages.mdx @@ -6,7 +6,7 @@ Retrieves the most recent messages from a specified channel. ## Usage -```bash +```php $getChannelMessages[Channel ID;userID or everyone (default is everyone);ids/contents;separator;amount (max 50);reverse (yes/no, default is no)] ``` diff --git a/content/docs/(functions)/Channel/latestMessage.mdx b/content/docs/(functions)/Channel/latestMessage.mdx index 210081dc..36120f15 100644 --- a/content/docs/(functions)/Channel/latestMessage.mdx +++ b/content/docs/(functions)/Channel/latestMessage.mdx @@ -6,7 +6,7 @@ Retrieves the most recent message content or ID from a channel, utilizing the ca ## Usage -```bash +```php $latestMessage[Channel ID (defaults to current channel);User ID (defaults to all users);Return Message ID instead (yes/no, defaults to no)] ``` diff --git a/content/docs/(functions)/Channel/mentionChannel.mdx b/content/docs/(functions)/Channel/mentionChannel.mdx index 2c905018..db0c7ac5 100644 --- a/content/docs/(functions)/Channel/mentionChannel.mdx +++ b/content/docs/(functions)/Channel/mentionChannel.mdx @@ -6,17 +6,17 @@ mention a channel, threads by name or id ## Usage -```bash +```php $mentionChannel[Name/ID] ``` ### Example: -```bash +```php $mentionChannel[chat] ``` ### Example: -```bash +```php $mentionChannel[1234567898765431] ``` \ No newline at end of file diff --git a/content/docs/(functions)/Channel/meta.json b/content/docs/(functions)/Channel/meta.json index e0730803..00c4e99c 100644 --- a/content/docs/(functions)/Channel/meta.json +++ b/content/docs/(functions)/Channel/meta.json @@ -1,6 +1,4 @@ { - "title": "Channel Functions", - "pages": [ - "..." - ] + "title": "Channel Functions", + "pages": ["..."] } diff --git a/content/docs/(functions)/Channel/removeContains.mdx b/content/docs/(functions)/Channel/removeContains.mdx index 34ea55bd..cde01928 100644 --- a/content/docs/(functions)/Channel/removeContains.mdx +++ b/content/docs/(functions)/Channel/removeContains.mdx @@ -6,7 +6,7 @@ This function allows you to delete messages within a specified channel that cont ## Syntax -```bash +```php $removeContains[channelID;limit;word1;word2;...] ``` @@ -20,7 +20,7 @@ $removeContains[channelID;limit;word1;word2;...] Let's say you want to delete messages in channel `123456789012345678` containing either the word "spam" or the word "advertisement", and you want to check the last 100 messages. You would use: -```bash +```php $removeContains[123456789012345678;100;spam;advertisement] ``` diff --git a/content/docs/(functions)/Channel/serverChannels.mdx b/content/docs/(functions)/Channel/serverChannels.mdx index 48ced272..0ae0c06a 100644 --- a/content/docs/(functions)/Channel/serverChannels.mdx +++ b/content/docs/(functions)/Channel/serverChannels.mdx @@ -6,7 +6,7 @@ This function retrieves a list of all channels within the current server (guild) ## Usage -```bash +```php $serverChannels[info (optional, default: name); type (optional, default: all); separator (optional, default: ", ")] ``` diff --git a/content/docs/(functions)/Channel/setChannelTopic.mdx b/content/docs/(functions)/Channel/setChannelTopic.mdx index 6390e666..8498d5d5 100644 --- a/content/docs/(functions)/Channel/setChannelTopic.mdx +++ b/content/docs/(functions)/Channel/setChannelTopic.mdx @@ -6,7 +6,7 @@ This command allows you to change the topic (also known as the channel descripti ## Usage -```bash +```php $setChannelTopic[channelID;topic] ``` @@ -19,7 +19,7 @@ $setChannelTopic[channelID;topic] Let's say you want to set the topic of the current channel to "This channel is for memes only!". You would use the following command: -```bash +```php $setChannelTopic[$channelID;This channel is for memes only!] ``` diff --git a/content/docs/(functions)/Channel/slowmode.mdx b/content/docs/(functions)/Channel/slowmode.mdx index 0abe7fca..f7135950 100644 --- a/content/docs/(functions)/Channel/slowmode.mdx +++ b/content/docs/(functions)/Channel/slowmode.mdx @@ -13,7 +13,7 @@ The `$slowmode` command takes two arguments: ## Usage Example -```bash +```php $slowmode[123456789012345678;10s] ``` @@ -23,7 +23,7 @@ This example sets the slowmode in the channel with ID `123456789012345678` to 10 To remove slowmode from a channel, use `0` as the time argument: -```bash +```php $slowmode[123456789012345678;0] ``` diff --git a/content/docs/(functions)/Channel/transcriptChannel.mdx b/content/docs/(functions)/Channel/transcriptChannel.mdx index 7b6e36e2..f48fe988 100644 --- a/content/docs/(functions)/Channel/transcriptChannel.mdx +++ b/content/docs/(functions)/Channel/transcriptChannel.mdx @@ -8,7 +8,7 @@ This function generates an HTML file containing a transcript of the latest 100 m ## Usage -```bash +```php $transcriptChannel[Channel ID;Send to Channel ID;Message (optional);file name (optional);return message id or undefined.if message could not be send(yes/no default=no)] ``` diff --git a/content/docs/(functions)/Channel/vcBefore.mdx b/content/docs/(functions)/Channel/vcBefore.mdx index 3ab58574..c3d1334c 100644 --- a/content/docs/(functions)/Channel/vcBefore.mdx +++ b/content/docs/(functions)/Channel/vcBefore.mdx @@ -15,7 +15,7 @@ This function retrieves the voice channel ID associated with a "before" state in ## Usage -```bash +```php $vcBefore ``` diff --git a/content/docs/(functions)/Channel/voiceChannelID.mdx b/content/docs/(functions)/Channel/voiceChannelID.mdx index be5a6121..c722bd36 100644 --- a/content/docs/(functions)/Channel/voiceChannelID.mdx +++ b/content/docs/(functions)/Channel/voiceChannelID.mdx @@ -16,7 +16,7 @@ Returns the ID of the voice channel a user joined or left in a voice trigger eve ## Usage -```bash +```php $voiceChannelID ``` diff --git a/content/docs/(functions)/Cooldown/channelCooldown.mdx b/content/docs/(functions)/Cooldown/channelCooldown.mdx index dbfd80f8..3cf2e48b 100644 --- a/content/docs/(functions)/Cooldown/channelCooldown.mdx +++ b/content/docs/(functions)/Cooldown/channelCooldown.mdx @@ -6,7 +6,7 @@ Sets a cooldown for a command in channel. ## Usage -```bash +```php $channelCooldown[time;error message] ``` 1. **time** - (Optional) default value: `5s`. The cooldown duration. Example times: `10s`, `1m`, `2h`, `1d` diff --git a/content/docs/(functions)/Cooldown/clearCoolDown.mdx b/content/docs/(functions)/Cooldown/clearCoolDown.mdx index 2f514ea9..478f79da 100644 --- a/content/docs/(functions)/Cooldown/clearCoolDown.mdx +++ b/content/docs/(functions)/Cooldown/clearCoolDown.mdx @@ -8,7 +8,7 @@ Clears a cooldown set by cooldown function. ## Usage -```bash +```php $clearCooldown[type;id;token] ``` 1. **type** - (Optional) default value: `user`. Can be `user`, `channel` or `server`. The type of cooldown to clear. diff --git a/content/docs/(functions)/Cooldown/cooldown.mdx b/content/docs/(functions)/Cooldown/cooldown.mdx index 14172f2a..558ffde2 100644 --- a/content/docs/(functions)/Cooldown/cooldown.mdx +++ b/content/docs/(functions)/Cooldown/cooldown.mdx @@ -6,7 +6,7 @@ Sets a cooldown in a command for user. ## Usage -```bash +```php $cooldown[time;error message;userID] ``` 1. **time** - (Optional) default value: `5s`. The cooldown duration. Example times: `10s`, `1m`, `2h`, `1d` diff --git a/content/docs/(functions)/Cooldown/getCooldownTime.mdx b/content/docs/(functions)/Cooldown/getCooldownTime.mdx index 1fe352c1..b9bd9919 100644 --- a/content/docs/(functions)/Cooldown/getCooldownTime.mdx +++ b/content/docs/(functions)/Cooldown/getCooldownTime.mdx @@ -6,7 +6,7 @@ Returns remaining time of a cooldown in miliseconds. ## Usage -```bash +```php $getCooldownTime[time;type;id;token] ``` 1. **time** - (Optional) default value: (last cooldown set). The time your cooldown was set to. diff --git a/content/docs/(functions)/Cooldown/meta.json b/content/docs/(functions)/Cooldown/meta.json index 11bfeecc..922a2aee 100644 --- a/content/docs/(functions)/Cooldown/meta.json +++ b/content/docs/(functions)/Cooldown/meta.json @@ -1,6 +1,4 @@ { - "title": "Cooldown functions", - "pages": [ - "..." - ] + "title": "Cooldown functions", + "pages": ["..."] } diff --git a/content/docs/(functions)/Cooldown/serverCooldown.mdx b/content/docs/(functions)/Cooldown/serverCooldown.mdx index c6f850a4..866784a8 100644 --- a/content/docs/(functions)/Cooldown/serverCooldown.mdx +++ b/content/docs/(functions)/Cooldown/serverCooldown.mdx @@ -6,7 +6,7 @@ Sets a cooldown in a command for the whole server. ## Usage -```bash +```php $serverCooldown[time;error message] ``` 1. **time** - (Optional) default value: `5s`. The cooldown duration. Example times: `10s`, `1m`, `2h`, `1d` diff --git a/content/docs/(functions)/Date/dateToTime.mdx b/content/docs/(functions)/Date/dateToTime.mdx index a4cf85e0..51ed172b 100644 --- a/content/docs/(functions)/Date/dateToTime.mdx +++ b/content/docs/(functions)/Date/dateToTime.mdx @@ -6,7 +6,7 @@ Converts a human-readable date string to milliseconds since the Unix epoch (Janu ## Usage -```bash +```php $dateToTime[Date] ``` diff --git a/content/docs/(functions)/Date/memberJoinedCode.mdx b/content/docs/(functions)/Date/memberJoinedCode.mdx index b69ca293..46e3402d 100644 --- a/content/docs/(functions)/Date/memberJoinedCode.mdx +++ b/content/docs/(functions)/Date/memberJoinedCode.mdx @@ -6,7 +6,7 @@ retrieve the invite code, which the user join from ## Usage -```bash +```php $memberJoinedCode[User ID;Info Type (default code)] ``` diff --git a/content/docs/(functions)/Date/meta.json b/content/docs/(functions)/Date/meta.json index 5a89dd04..43b722d6 100644 --- a/content/docs/(functions)/Date/meta.json +++ b/content/docs/(functions)/Date/meta.json @@ -1,6 +1,4 @@ { - "title": "Date Functions", - "pages": [ - "..." - ] + "title": "Date Functions", + "pages": ["..."] } diff --git a/content/docs/(functions)/Date/timeToDate.mdx b/content/docs/(functions)/Date/timeToDate.mdx index b0f50fd5..64801d3e 100644 --- a/content/docs/(functions)/Date/timeToDate.mdx +++ b/content/docs/(functions)/Date/timeToDate.mdx @@ -6,7 +6,7 @@ Convert a Unix timestamp (milliseconds since January 1, 1970 UTC) into a formatt ## Usage -```bash +```php $timeToDate[Timestamp;Format (optional)] ``` diff --git a/content/docs/(functions)/Date/upvoteTime.mdx b/content/docs/(functions)/Date/upvoteTime.mdx index e21a85f4..06966e45 100644 --- a/content/docs/(functions)/Date/upvoteTime.mdx +++ b/content/docs/(functions)/Date/upvoteTime.mdx @@ -6,7 +6,7 @@ Returns the time when the current upvote was received. ## Usage -```bash +```php $upvoteTime ``` diff --git a/content/docs/(functions)/Events/eventCreate.mdx b/content/docs/(functions)/Events/eventCreate.mdx index 7df5293a..2e3b07c0 100644 --- a/content/docs/(functions)/Events/eventCreate.mdx +++ b/content/docs/(functions)/Events/eventCreate.mdx @@ -8,7 +8,7 @@ Creates a scheduled event on your server. The `$eventCreate` function allows you to schedule events with various types, including voice, stage, and external events. Here's how to use it: -```bash +```php $eventCreate[ {name=Your event name} {type=Your event type i.e. voice, stage, or external} @@ -61,7 +61,7 @@ When creating `external` events, ensure you specify: This example creates a voice channel event called "Anime Watch!" in the channel "AnimeWatchVC", starting in 10 minutes and lasting for 1 day. -```bash +```php $eventCreate[ {name=Anime Watch!} {start=$math[$timestamp+$parseTime[10m]]} diff --git a/content/docs/(functions)/Events/eventDelete.mdx b/content/docs/(functions)/Events/eventDelete.mdx index 305148d4..eed34cfd 100644 --- a/content/docs/(functions)/Events/eventDelete.mdx +++ b/content/docs/(functions)/Events/eventDelete.mdx @@ -6,7 +6,7 @@ Deletes an existing scheduled event. ## Usage -```bash +```php $eventDelete[event ID] ``` @@ -28,6 +28,6 @@ The `$eventDelete` function deletes a scheduled event using its unique event ID. Let's say you have an event with the ID `1234567890`. To delete this event, you would use: -```bash +```php $eventDelete[1234567890] ``` \ No newline at end of file diff --git a/content/docs/(functions)/Events/eventEdit.mdx b/content/docs/(functions)/Events/eventEdit.mdx index 3b7614bf..8b71fcbe 100644 --- a/content/docs/(functions)/Events/eventEdit.mdx +++ b/content/docs/(functions)/Events/eventEdit.mdx @@ -8,7 +8,7 @@ Edit an existing scheduled event using its ID. This function allows you to modify various aspects of a scheduled event, such as its name, type, start and end times, description, and more. -```bash +```php $eventEdit[ {event=Event ID to edit} {name=New event name} @@ -45,7 +45,7 @@ $eventEdit[ This example demonstrates changing the name of an event with the ID `12345` to "My event new name!". -```bash +```php $eventEdit[ {event=12345} {name=My event new name!} diff --git a/content/docs/(functions)/Events/eventExists.mdx b/content/docs/(functions)/Events/eventExists.mdx index cc215ce6..bbd3a6db 100644 --- a/content/docs/(functions)/Events/eventExists.mdx +++ b/content/docs/(functions)/Events/eventExists.mdx @@ -6,7 +6,7 @@ Checks if an event with the specified ID exists. ## Usage -```bash +```php $eventExists[event id] ``` diff --git a/content/docs/(functions)/Events/eventStart.mdx b/content/docs/(functions)/Events/eventStart.mdx index 1f9f9774..44c729f1 100644 --- a/content/docs/(functions)/Events/eventStart.mdx +++ b/content/docs/(functions)/Events/eventStart.mdx @@ -10,7 +10,7 @@ This function allows you to initiate a scheduled event immediately. You'll need ## Usage -```bash +```php $eventStart[Event ID] ``` @@ -22,7 +22,7 @@ $eventStart[Event ID] To start a scheduled event with the ID `my_event_123`, you would use the following: -```bash +```php $eventStart[my_event_123] ``` diff --git a/content/docs/(functions)/Events/getEventInfo.mdx b/content/docs/(functions)/Events/getEventInfo.mdx index fec8fd8f..eb4b06b5 100644 --- a/content/docs/(functions)/Events/getEventInfo.mdx +++ b/content/docs/(functions)/Events/getEventInfo.mdx @@ -6,7 +6,7 @@ Retrieves information about a specific event within a guild (server). ## Usage -```bash +```php $getEventInfo[event id;info type] ``` diff --git a/content/docs/(functions)/Events/getEventUsers.mdx b/content/docs/(functions)/Events/getEventUsers.mdx index 6d28d440..2c684a2e 100644 --- a/content/docs/(functions)/Events/getEventUsers.mdx +++ b/content/docs/(functions)/Events/getEventUsers.mdx @@ -6,7 +6,7 @@ Retrieves a list of users who have expressed interest in a specific event. ## Usage -```bash +```php $getEventUsers[event id;separator (default is ', ')] ``` diff --git a/content/docs/(functions)/Events/meta.json b/content/docs/(functions)/Events/meta.json index 22d35ce3..0a3a545a 100644 --- a/content/docs/(functions)/Events/meta.json +++ b/content/docs/(functions)/Events/meta.json @@ -1,6 +1,4 @@ { - "title": "Event Functions", - "pages": [ - "..." - ] + "title": "Event Functions", + "pages": ["..."] } diff --git a/content/docs/(functions)/Image/imageBorderRad.mdx b/content/docs/(functions)/Image/imageBorderRad.mdx index 6d2fb2b9..b93bf597 100644 --- a/content/docs/(functions)/Image/imageBorderRad.mdx +++ b/content/docs/(functions)/Image/imageBorderRad.mdx @@ -8,11 +8,11 @@ Control the border radius of a filled box created with $imageFill. This allows y You can specify a single radius value to apply to all corners, or provide individual values for each corner for more precise control. -```bash +```php $imageBorderRad[border radius for all corners] ``` -```bash +```php $imageBorderRad[top-left corner radius; top-right corner radius; bottom-right corner radius; bottom-left corner radius] ``` diff --git a/content/docs/(functions)/Image/imageCreate.mdx b/content/docs/(functions)/Image/imageCreate.mdx index 867bf28d..c74255fd 100644 --- a/content/docs/(functions)/Image/imageCreate.mdx +++ b/content/docs/(functions)/Image/imageCreate.mdx @@ -6,7 +6,7 @@ Creates a new, blank image with specified dimensions. ## Usage -```bash +```php $imageCreate[width;height] ``` diff --git a/content/docs/(functions)/Image/imageCrop.mdx b/content/docs/(functions)/Image/imageCrop.mdx index 3163497d..b556a461 100644 --- a/content/docs/(functions)/Image/imageCrop.mdx +++ b/content/docs/(functions)/Image/imageCrop.mdx @@ -6,7 +6,7 @@ Crop a defined image from image builder ## Usage -```bash +```php $imageCrop[image name;x;y;width;height] ``` diff --git a/content/docs/(functions)/Image/imageDraw.mdx b/content/docs/(functions)/Image/imageDraw.mdx index 5abd829d..ead88c05 100644 --- a/content/docs/(functions)/Image/imageDraw.mdx +++ b/content/docs/(functions)/Image/imageDraw.mdx @@ -6,7 +6,7 @@ Draws a loaded image onto the current image. This allows you to composite images ## Usage -```bash +```php $imageDraw[image name;x;y;width;height;opacity] ``` diff --git a/content/docs/(functions)/Image/imageDrawBack.mdx b/content/docs/(functions)/Image/imageDrawBack.mdx index c21c7e57..38bea6d2 100644 --- a/content/docs/(functions)/Image/imageDrawBack.mdx +++ b/content/docs/(functions)/Image/imageDrawBack.mdx @@ -6,7 +6,7 @@ Draws a loaded image behind the current image. This allows you to layer images a ## Usage -```bash +```php $imageDrawBack[image name;x;y;width;height;opacity] ``` diff --git a/content/docs/(functions)/Image/imageFill.mdx b/content/docs/(functions)/Image/imageFill.mdx index dc56d269..7721ab55 100644 --- a/content/docs/(functions)/Image/imageFill.mdx +++ b/content/docs/(functions)/Image/imageFill.mdx @@ -6,7 +6,7 @@ Fill a portion of an image with a specified color. ## Usage -```bash +```php $imageFill[color;x;y;width;height;opacity] ``` diff --git a/content/docs/(functions)/Image/imageLineHeight.mdx b/content/docs/(functions)/Image/imageLineHeight.mdx index bbea4f8b..7b8297cb 100644 --- a/content/docs/(functions)/Image/imageLineHeight.mdx +++ b/content/docs/(functions)/Image/imageLineHeight.mdx @@ -6,7 +6,7 @@ Adjust the line height used when drawing text within the image builder. The defa ## Usage -```bash +```php $imageLineHeight[New Value (optional)] ``` @@ -23,7 +23,7 @@ $imageLineHeight[New Value (optional)] To set the line height to `1.3`, use the following command: -```bash +```php $imageLineHeight[1.3] ``` diff --git a/content/docs/(functions)/Image/imageLoadEmoji.mdx b/content/docs/(functions)/Image/imageLoadEmoji.mdx index e609826e..c00c5bab 100644 --- a/content/docs/(functions)/Image/imageLoadEmoji.mdx +++ b/content/docs/(functions)/Image/imageLoadEmoji.mdx @@ -6,7 +6,7 @@ Loads an emoji (either a standard Unicode emoji or a custom Discord emoji) for u ## Usage -```bash +```php $imageLoadEmoji[id;Emoji] ``` diff --git a/content/docs/(functions)/Image/imageLoadFromURL.mdx b/content/docs/(functions)/Image/imageLoadFromURL.mdx index bd26d807..ff2ad499 100644 --- a/content/docs/(functions)/Image/imageLoadFromURL.mdx +++ b/content/docs/(functions)/Image/imageLoadFromURL.mdx @@ -6,7 +6,7 @@ Loads an image from a URL and saves it with a reference name for later use in ot ## Usage -```bash +```php $imageLoadFromURL[name;URL] ``` diff --git a/content/docs/(functions)/Image/imageOutput.mdx b/content/docs/(functions)/Image/imageOutput.mdx index 8b369ff8..754cdc59 100644 --- a/content/docs/(functions)/Image/imageOutput.mdx +++ b/content/docs/(functions)/Image/imageOutput.mdx @@ -8,7 +8,7 @@ This function saves the current image being drawn into a file and returns the fi ## Usage -```bash +```php $imageOutput[type] ``` @@ -22,7 +22,7 @@ These examples assume you've already used functions like `$imageCreate` and othe **Example 1: Sending the image directly using `$image`** -```bash +```php $imageCreate[...] // Create the initial image (replace [...] with actual parameters) // ... Building the image using other $image functions ... $image[$imageOutput[png]] // Save as PNG and send the image using $image function @@ -37,7 +37,7 @@ $image[$imageOutput[png]] // Save as PNG and send the image using $image functio **Example 2: Sending the image using `{image:...}` in `$sendMessage`** -```bash +```php $imageCreate[...] // Create the initial image (replace [...] with actual parameters) // ... Building the image using other $image functions ... $sendMessage[{image:$imageOutput[jpg]}] // Save as JPG and send the image using $sendMessage function diff --git a/content/docs/(functions)/Image/imagePositionBase.mdx b/content/docs/(functions)/Image/imagePositionBase.mdx index ad06ee0c..21d10994 100644 --- a/content/docs/(functions)/Image/imagePositionBase.mdx +++ b/content/docs/(functions)/Image/imagePositionBase.mdx @@ -6,7 +6,7 @@ Control the base position for drawing images or objects. By default, the base po ## Usage -```bash +```php $imagePositionBase[Base] ``` diff --git a/content/docs/(functions)/Image/imageSetOpacity.mdx b/content/docs/(functions)/Image/imageSetOpacity.mdx index ce4c4603..b42bd866 100644 --- a/content/docs/(functions)/Image/imageSetOpacity.mdx +++ b/content/docs/(functions)/Image/imageSetOpacity.mdx @@ -6,7 +6,7 @@ Sets the global opacity for all subsequent drawing operations performed by the i ## Usage -```bash +```php $imageSetOpacity[opacity] ``` @@ -22,7 +22,7 @@ $imageSetOpacity[opacity] This example sets the opacity to 50%, making subsequent drawings semi-transparent. -```bash +```php $imageSetOpacity[50] ``` @@ -30,7 +30,7 @@ $imageSetOpacity[50] This example demonstrates how to use `$imageSetOpacity` to draw two avatars with different opacities. It fetches the author's avatar, loads it into the image builder, draws it once at full opacity, then sets the opacity to 50% and draws it again. -```bash +```php !!exec $let[avatar;$replaceText[$authoravatar;.webp;.png]] $imageCreate[300;300] $imageLoadFromURL[avatar;$avatar] diff --git a/content/docs/(functions)/Image/imageStroke.mdx b/content/docs/(functions)/Image/imageStroke.mdx index 1b580b36..8da08594 100644 --- a/content/docs/(functions)/Image/imageStroke.mdx +++ b/content/docs/(functions)/Image/imageStroke.mdx @@ -6,7 +6,7 @@ Draws a rectangle outline (stroke) on the canvas. ## Usage -```bash +```php $imageStroke[color;x;y;width;height;opacity] ``` diff --git a/content/docs/(functions)/Image/imageStrokeWidth.mdx b/content/docs/(functions)/Image/imageStrokeWidth.mdx index 6ab5db10..2734f989 100644 --- a/content/docs/(functions)/Image/imageStrokeWidth.mdx +++ b/content/docs/(functions)/Image/imageStrokeWidth.mdx @@ -6,7 +6,7 @@ Controls the thickness of the stroke line used by the `$imageStroke` function. T ## Usage -```bash +```php $imageStrokeWidth[width] ``` diff --git a/content/docs/(functions)/Image/imageTextColor.mdx b/content/docs/(functions)/Image/imageTextColor.mdx index 59b5ce02..ed031eb9 100644 --- a/content/docs/(functions)/Image/imageTextColor.mdx +++ b/content/docs/(functions)/Image/imageTextColor.mdx @@ -8,7 +8,7 @@ Specifies the fill and stroke color of the text in your image. This command allo The `$imageTextColor` command takes a single argument: the color you want to use for the text. -```bash +```php $imageTextColor[Color name] ``` @@ -24,13 +24,13 @@ $imageTextColor[Color name] To set the text color to blue: -```bash +```php $imageTextColor[blue] ``` To set the text color to a specific shade of green using a hexadecimal code: -```bash +```php $imageTextColor[#008000] ``` diff --git a/content/docs/(functions)/Image/imageTextFill.mdx b/content/docs/(functions)/Image/imageTextFill.mdx index 69372a6d..25387107 100644 --- a/content/docs/(functions)/Image/imageTextFill.mdx +++ b/content/docs/(functions)/Image/imageTextFill.mdx @@ -6,7 +6,7 @@ Add filled text to an image. ## Usage -```bash +```php $imageTextFill[Text;position x;position y;color;opacity] ``` diff --git a/content/docs/(functions)/Image/imageTextFillColor.mdx b/content/docs/(functions)/Image/imageTextFillColor.mdx index 273beb48..b059f5cc 100644 --- a/content/docs/(functions)/Image/imageTextFillColor.mdx +++ b/content/docs/(functions)/Image/imageTextFillColor.mdx @@ -8,7 +8,7 @@ This function allows you to control the color of the text you add to images. Yo ## Syntax -```bash +```php $imageTextFillColor[Color name] ``` @@ -23,13 +23,13 @@ $imageTextFillColor[Color name] To set the text fill color to blue: -```bash +```php $imageTextFillColor[blue] ``` To set the text fill color to a specific shade of green using a hex code: -```bash +```php $imageTextFillColor[#008000] ``` diff --git a/content/docs/(functions)/Image/imageTextStroke.mdx b/content/docs/(functions)/Image/imageTextStroke.mdx index 225cff2f..51b30328 100644 --- a/content/docs/(functions)/Image/imageTextStroke.mdx +++ b/content/docs/(functions)/Image/imageTextStroke.mdx @@ -6,17 +6,17 @@ Add a stroke (border) to text on an image. This effect can enhance the visibilit ## Usage -```bash +```php $imageTextStroke[Text;position x;position y;color (optional);opacity (optional)] ``` **Parameters:** -* **`Text`**: The text you want to add a stroke to. -* **`position x`**: The horizontal position of the text. See details below. -* **`position y`**: The vertical position of the text. See details below. -* **`color (optional)`**: The color of the stroke (border). You can use Hex codes (e.g., `#FFFFFF` for white) or named colors (e.g., `red`). If omitted, a default color will be used. -* **`opacity (optional)`**: The opacity of the stroke, ranging from 0 (fully transparent) to 1 (fully opaque). If omitted, the stroke will be fully opaque (1). +- **`Text`**: The text you want to add a stroke to. +- **`position x`**: The horizontal position of the text. See details below. +- **`position y`**: The vertical position of the text. See details below. +- **`color (optional)`**: The color of the stroke (border). You can use Hex codes (e.g., `#FFFFFF` for white) or named colors (e.g., `red`). If omitted, a default color will be used. +- **`opacity (optional)`**: The opacity of the stroke, ranging from 0 (fully transparent) to 1 (fully opaque). If omitted, the stroke will be fully opaque (1). ## Understanding Position (X & Y) @@ -24,13 +24,13 @@ For a deeper understanding of how to specify the X and Y coordinates for text po ## Related: Size (Width & Height) -While not directly used in `$imageTextStroke`, understanding how to set image dimensions can be helpful when working with text. You can learn more about width and height settings [here](/CodeReferences/ref.imgbuild.size). +While not directly used in `$imageTextStroke`, understanding how to set image dimensions can be helpful when working with text. You can learn more about width and height settings [here](/CodeReferences/ref.imgbuild.size). ## Example This example creates an image, sets the text size and alignment, and then adds stroked text to the image. -```discord +```php !!exec $imageCreate[300;300] $imageTextSize[30] $imageTextAlign[center] @@ -41,11 +41,28 @@ $image[$imageOutput] **Result:** - -!!exec $imageCreate[300;300]
$imageTextSize[30]
$imageTextAlign[center]
$imageTextStroke[CC is Awesome;150;150;#4461b3]
$image[$imageOutput]

-
- - - - -
\ No newline at end of file + + !!exec $imageCreate[300;300] +
+ $imageTextSize[30] +
+ $imageTextAlign[center] +
+ $imageTextStroke[CC is Awesome;150;150;#4461b3] +
+ $image[$imageOutput] +
+
+
+ + + + diff --git a/content/docs/(functions)/Image/imageTextStrokeColor.mdx b/content/docs/(functions)/Image/imageTextStrokeColor.mdx index 5a6f1a73..a8aa09e4 100644 --- a/content/docs/(functions)/Image/imageTextStrokeColor.mdx +++ b/content/docs/(functions)/Image/imageTextStrokeColor.mdx @@ -10,7 +10,7 @@ The `$imageTextStrokeColor` function allows you to define the color of the outli ## Usage -```bash +```php $imageTextStrokeColor[Color name] ``` @@ -22,13 +22,13 @@ $imageTextStrokeColor[Color name] To set the text stroke color to blue, you would use: -```bash +```php $imageTextStrokeColor[blue] ``` To set the text stroke color to a specific shade of green using a hex code, you would use: -```bash +```php $imageTextStrokeColor[#00FF00] ``` diff --git a/content/docs/(functions)/Image/imageTextWeight.mdx b/content/docs/(functions)/Image/imageTextWeight.mdx index 526abb10..91065c69 100644 --- a/content/docs/(functions)/Image/imageTextWeight.mdx +++ b/content/docs/(functions)/Image/imageTextWeight.mdx @@ -6,7 +6,7 @@ Controls the font weight (thickness) and style of text rendered on your images. ## Usage -```bash +```php $imageTextWeight[Weight Type] ``` @@ -28,6 +28,6 @@ Here's a breakdown of the allowed values for `[Weight Type]`: To make your image text appear in bold, you would use: -```bash +```php $imageTextWeight[bold] ``` \ No newline at end of file diff --git a/content/docs/(functions)/Image/imageUseFont.mdx b/content/docs/(functions)/Image/imageUseFont.mdx index 9a45393d..eab01474 100644 --- a/content/docs/(functions)/Image/imageUseFont.mdx +++ b/content/docs/(functions)/Image/imageUseFont.mdx @@ -6,7 +6,7 @@ Sets the font type for text rendered on images. ## Usage -```bash +```php $imageUseFont[font name] ``` diff --git a/content/docs/(functions)/Image/imageWidth.mdx b/content/docs/(functions)/Image/imageWidth.mdx index 7b82924e..479290f0 100644 --- a/content/docs/(functions)/Image/imageWidth.mdx +++ b/content/docs/(functions)/Image/imageWidth.mdx @@ -6,7 +6,7 @@ Retrieves the width of an image. This function allows you to dynamically get the ## Usage -```bash +```php $imageWidth[image name] ``` @@ -18,7 +18,7 @@ $imageWidth[image name] This example shows how to get the width of the currently loaded image. -```bash +```php $imageWidth ``` @@ -28,7 +28,7 @@ This will return the width (in pixels) of the image currently being processed. This example shows how to get the width of an image that was loaded and assigned the name "avatar". -```bash +```php $imageWidth[avatar] ``` diff --git a/content/docs/(functions)/Image/meta.json b/content/docs/(functions)/Image/meta.json index 0850c17a..f38cecd9 100644 --- a/content/docs/(functions)/Image/meta.json +++ b/content/docs/(functions)/Image/meta.json @@ -1,6 +1,4 @@ { - "title": "Image Builder functions", - "pages": [ - "..." - ] + "title": "Image Builder functions", + "pages": ["..."] } diff --git a/content/docs/(functions)/Interaction/commandName.mdx b/content/docs/(functions)/Interaction/commandName.mdx index 213b146d..d97c07ff 100644 --- a/content/docs/(functions)/Interaction/commandName.mdx +++ b/content/docs/(functions)/Interaction/commandName.mdx @@ -12,7 +12,7 @@ This function only works within the context of a [slash command](/Trigger/slash) ## Usage -```bash +```php $commandName ``` @@ -22,7 +22,7 @@ This example demonstrates how to use `$commandName` to display the name of the c ### Code -```bash +```php $interactionReply[:game_die: $random[1;6]] $interactionReply[Command ran: `$commandName`] ``` diff --git a/content/docs/(functions)/Interaction/getOption.mdx b/content/docs/(functions)/Interaction/getOption.mdx index 82d4b16c..d7388d88 100644 --- a/content/docs/(functions)/Interaction/getOption.mdx +++ b/content/docs/(functions)/Interaction/getOption.mdx @@ -6,7 +6,7 @@ Retrieves the value of a user-provided option from an interaction, such as a sla ## Usage -```bash +```php $getOption[Option name] ``` diff --git a/content/docs/(functions)/Interaction/meta.json b/content/docs/(functions)/Interaction/meta.json index 1ee45c00..e405870f 100644 --- a/content/docs/(functions)/Interaction/meta.json +++ b/content/docs/(functions)/Interaction/meta.json @@ -1,6 +1,4 @@ { - "title": "Interaction Functions", - "pages": [ - "..." - ] + "title": "Interaction Functions", + "pages": ["..."] } diff --git a/content/docs/(functions)/Member/authorAvatar.mdx b/content/docs/(functions)/Member/authorAvatar.mdx index abf396ba..da0e655a 100644 --- a/content/docs/(functions)/Member/authorAvatar.mdx +++ b/content/docs/(functions)/Member/authorAvatar.mdx @@ -6,7 +6,7 @@ Returns the avatar (profile picture) URL of the user who executed the command. ## Usage -```bash +```php $authorAvatar[serverAvatar] ``` 1. **serverAvatar** - (Optional) default value: `no`. Can be `yes` or `no`. Discord does have two types of avatars, global and per-server (custom avatar in each server). If no server avatar is set, the global avatar will be used. diff --git a/content/docs/(functions)/Member/authorID.mdx b/content/docs/(functions)/Member/authorID.mdx index a0c5119b..cd8f939d 100644 --- a/content/docs/(functions)/Member/authorID.mdx +++ b/content/docs/(functions)/Member/authorID.mdx @@ -6,7 +6,7 @@ Returns the ID of the user who executed the command. ## Usage -```bash +```php $authorID ``` diff --git a/content/docs/(functions)/Member/ban.mdx b/content/docs/(functions)/Member/ban.mdx index 136c4da4..aeb742f0 100644 --- a/content/docs/(functions)/Member/ban.mdx +++ b/content/docs/(functions)/Member/ban.mdx @@ -6,7 +6,7 @@ Bans a user from the server. ## Usage -```bash +```php $ban[userID;reason;messages to delete] ``` 1. **userID** - The ID of the user to ban. diff --git a/content/docs/(functions)/Member/blackListIDs.mdx b/content/docs/(functions)/Member/blackListIDs.mdx index 2a1bd7e6..0643f89c 100644 --- a/content/docs/(functions)/Member/blackListIDs.mdx +++ b/content/docs/(functions)/Member/blackListIDs.mdx @@ -8,7 +8,7 @@ Prevent users from using a command by blacklisting their IDs. The `$blackListIDs` function allows you to restrict access to a command for a specified list of users. If a blacklisted user attempts to use the command, the function will return a custom error message. -```bash +```php $blackListIDs[userID;userID;...;error message] ``` 1. **userID** - This makes user not able to run this command. You can add as many userIDs as you want, separated with semicolon (`;`). diff --git a/content/docs/(functions)/Member/boostingSince.mdx b/content/docs/(functions)/Member/boostingSince.mdx index 4c511c69..743d0cf4 100644 --- a/content/docs/(functions)/Member/boostingSince.mdx +++ b/content/docs/(functions)/Member/boostingSince.mdx @@ -6,7 +6,7 @@ Returns the date a user started boosting the server. ## Usage -```bash +```php $boostingSince[userID;date/ms] ``` 1. **userID** - (Optional) default value: `$authorID`. The ID of user to return boosting date diff --git a/content/docs/(functions)/Member/changeNickname.mdx b/content/docs/(functions)/Member/changeNickname.mdx index 9e4b5003..5cd8bd47 100644 --- a/content/docs/(functions)/Member/changeNickname.mdx +++ b/content/docs/(functions)/Member/changeNickname.mdx @@ -6,7 +6,7 @@ Changes the nickname of a specified member in the server. ## Usage: -```bash +```php $changeNickname[userID;nickname] ``` 1. **userID** - The ID of the member whose nickname you want to change. diff --git a/content/docs/(functions)/Member/discriminator.mdx b/content/docs/(functions)/Member/discriminator.mdx index db1d5643..16660a87 100644 --- a/content/docs/(functions)/Member/discriminator.mdx +++ b/content/docs/(functions)/Member/discriminator.mdx @@ -6,7 +6,7 @@ Returns the discriminator of the user who executed the command, or a specified m ## Usage: -```bash +```php $discriminator[userID] ``` 1. **userID** - (Optional) default value: `$authorID`. The ID of user you want to return the discriminator from. diff --git a/content/docs/(functions)/Member/displayName.mdx b/content/docs/(functions)/Member/displayName.mdx index 1d5aa8c9..08f6a209 100644 --- a/content/docs/(functions)/Member/displayName.mdx +++ b/content/docs/(functions)/Member/displayName.mdx @@ -6,7 +6,7 @@ Returns the display name of a specified user. This is the name that's shown for ## Usage -```bash +```php $displayName[userID] ``` 1. **userID** - (Optional) default value: `$authorID`. The user ID of the user you want to return display name from. diff --git a/content/docs/(functions)/Member/eventNewNickname.mdx b/content/docs/(functions)/Member/eventNewNickname.mdx index 31421bdb..07b0d1ac 100644 --- a/content/docs/(functions)/Member/eventNewNickname.mdx +++ b/content/docs/(functions)/Member/eventNewNickname.mdx @@ -6,7 +6,7 @@ Returns the new nickname of a member when their nickname is updated. Works in `O ## Usage -```bash +```php $eventNewNickname ``` @@ -16,7 +16,7 @@ $eventNewNickname Imagine you have a Nickname Change command that logs the new nickname to a channel -```bash +```php $sendMessage[User $username changed their nickname from $eventOldNickname to $eventNewNickname!] ``` diff --git a/content/docs/(functions)/Member/eventOldNickname.mdx b/content/docs/(functions)/Member/eventOldNickname.mdx index b93274c2..4355e9dc 100644 --- a/content/docs/(functions)/Member/eventOldNickname.mdx +++ b/content/docs/(functions)/Member/eventOldNickname.mdx @@ -6,7 +6,7 @@ Returns the old nickname of a member when their nickname is updated. Works in `O ## Usage -```bash +```php $eventOldNickname ``` @@ -16,7 +16,7 @@ $eventOldNickname Imagine you have a Nickname Change command that logs the new nickname to a channel -```bash +```php $sendMessage[User $username changed their nickname from $eventOldNickname to $eventNewNickname!] ``` diff --git a/content/docs/(functions)/Member/findMember.mdx b/content/docs/(functions)/Member/findMember.mdx index 6d5c1d77..0a9ee090 100644 --- a/content/docs/(functions)/Member/findMember.mdx +++ b/content/docs/(functions)/Member/findMember.mdx @@ -6,7 +6,7 @@ Searches for a user in the current server by their nickname, ID, mention, userna ## Usage: -```bash +```php $findMember[query;returnCurrentUser] ``` 1. **query** - Can be userID, nickname, mention, username, username#descriminator. diff --git a/content/docs/(functions)/Member/getUserBadges.mdx b/content/docs/(functions)/Member/getUserBadges.mdx index 895b7180..c1040f95 100644 --- a/content/docs/(functions)/Member/getUserBadges.mdx +++ b/content/docs/(functions)/Member/getUserBadges.mdx @@ -6,7 +6,7 @@ Returns the Discord badges from specified user. If none found, returns `none`. I ## Usage -```bash +```php $getUserBadges[userID] ``` 1. **userID** - (Optional) default value: `$authorID`. Which user to return badges from. diff --git a/content/docs/(functions)/Member/globalName.mdx b/content/docs/(functions)/Member/globalName.mdx index 25ebf4c7..c0e061c6 100644 --- a/content/docs/(functions)/Member/globalName.mdx +++ b/content/docs/(functions)/Member/globalName.mdx @@ -6,7 +6,7 @@ Returns the global name of the user ## Usage -```bash +```php $globalName[userID] ``` 1. **userID** - (Optional) default value: `$authorID`. The user ID of the user you want to return global name from. diff --git a/content/docs/(functions)/Member/hasAnyPerm.mdx b/content/docs/(functions)/Member/hasAnyPerm.mdx index c5c568a9..e436e5cc 100644 --- a/content/docs/(functions)/Member/hasAnyPerm.mdx +++ b/content/docs/(functions)/Member/hasAnyPerm.mdx @@ -6,7 +6,7 @@ Checks if a user has one of the given permissions. Returns `true` or `false`. ## Usage -```bash +```php $hasAnyPerm[userID;permission1;permission2;...] ``` 1. **userID** - (Optional) default value: `$authorID`. If not included or left empty, $authorID will be used. diff --git a/content/docs/(functions)/Member/hasAnyRole.mdx b/content/docs/(functions)/Member/hasAnyRole.mdx index 051e69f5..aa871bf4 100644 --- a/content/docs/(functions)/Member/hasAnyRole.mdx +++ b/content/docs/(functions)/Member/hasAnyRole.mdx @@ -6,7 +6,7 @@ Checks if a user has one of the given roles. Returns `true` or `false`. ## Usage -```bash +```php $hasAnyRole[userID;roleID1;roleID2;...] ``` 1. **userID** - (Optional) default value: `$authorID`. If not included or left empty, $authorID will be used. diff --git a/content/docs/(functions)/Member/hasPerms.mdx b/content/docs/(functions)/Member/hasPerms.mdx index 245a9dd8..dc67faa4 100644 --- a/content/docs/(functions)/Member/hasPerms.mdx +++ b/content/docs/(functions)/Member/hasPerms.mdx @@ -6,7 +6,7 @@ Checks if user has all of the given permissions. Returns `true` or `false`. ## Usage: -```bash +```php $hasPerms[userID;perm1;perm2;...] ``` 1. **userID** - User you want to check for permissions. diff --git a/content/docs/(functions)/Member/hasRoles.mdx b/content/docs/(functions)/Member/hasRoles.mdx index 173e9df3..39c09ad5 100644 --- a/content/docs/(functions)/Member/hasRoles.mdx +++ b/content/docs/(functions)/Member/hasRoles.mdx @@ -6,7 +6,7 @@ Checks if user has all of the given roles. Returns `true` or `false`. ## Usage: -```bash +```php $hasRoles[userID;role1;role2;...] ``` 1. **userID** - User you want to check for roles. diff --git a/content/docs/(functions)/Member/isBanned.mdx b/content/docs/(functions)/Member/isBanned.mdx index 821ee814..f57506d2 100644 --- a/content/docs/(functions)/Member/isBanned.mdx +++ b/content/docs/(functions)/Member/isBanned.mdx @@ -6,7 +6,7 @@ Checks if a user is banned from the guild. Returns `true` or `false`. ## Usage -```bash +```php $isBanned[userID] ``` 1. **userID** - The ID of the user to check if it's banned. diff --git a/content/docs/(functions)/Member/isUserDMEnabled.mdx b/content/docs/(functions)/Member/isUserDMEnabled.mdx index 608522be..d3092d5f 100644 --- a/content/docs/(functions)/Member/isUserDMEnabled.mdx +++ b/content/docs/(functions)/Member/isUserDMEnabled.mdx @@ -6,7 +6,7 @@ This function checks if a user has direct messages (DMs) enabled. It returns `t ## Usage -```bash +```php $isUserDMEnabled[userID] ``` 1. **userID** - (Optional) default value: `$authorID`. The ID of the user you want to check. diff --git a/content/docs/(functions)/Member/kick.mdx b/content/docs/(functions)/Member/kick.mdx index e1def207..73f90dee 100644 --- a/content/docs/(functions)/Member/kick.mdx +++ b/content/docs/(functions)/Member/kick.mdx @@ -6,7 +6,7 @@ Kicks a user from the server. ## Usage -```bash +```php $kick[userID;reason] ``` 1. **userID** - The ID of the user to kick. diff --git a/content/docs/(functions)/Member/memberSearch.mdx b/content/docs/(functions)/Member/memberSearch.mdx index 8e9bbd38..a5ba781c 100644 --- a/content/docs/(functions)/Member/memberSearch.mdx +++ b/content/docs/(functions)/Member/memberSearch.mdx @@ -6,7 +6,7 @@ Search for members with username or nickname in the server and get their informa ## Usage -```bash +```php $memberSearch[username/nickname;amount to return (Default is 1);separator (Default is ,);info to return (Default is id)] ``` diff --git a/content/docs/(functions)/Member/membersWithStatus.mdx b/content/docs/(functions)/Member/membersWithStatus.mdx index f71d16f7..da4ac0dd 100644 --- a/content/docs/(functions)/Member/membersWithStatus.mdx +++ b/content/docs/(functions)/Member/membersWithStatus.mdx @@ -6,7 +6,7 @@ Returns a list of member IDs who have specified status within the server separat ## Usage -```bash +```php $membersWithStatus[Status1;Status2;...] ``` 1. **Status N** - You can add multiple statuses. Can be `online`, `idle`, `dnd` (Do Not Disturb), `offline` (Includes invisible users), `streaming` (only valid for activities), `mobile` (only valid for platforms), `desktop` (only valid for platforms), `web` (only valid for platforms) diff --git a/content/docs/(functions)/Member/mention.mdx b/content/docs/(functions)/Member/mention.mdx index 6bc4733b..c642ae2c 100644 --- a/content/docs/(functions)/Member/mention.mdx +++ b/content/docs/(functions)/Member/mention.mdx @@ -6,7 +6,7 @@ Returns a mention of a user. ## Usage -```bash +```php $mention[userID] ``` 1. **userID** - (Optional) default value: `$authorID`. The ID of user to get mentioned. diff --git a/content/docs/(functions)/Member/meta.json b/content/docs/(functions)/Member/meta.json index 16ca45bd..7fdfb4f0 100644 --- a/content/docs/(functions)/Member/meta.json +++ b/content/docs/(functions)/Member/meta.json @@ -1,6 +1,4 @@ { - "title": "Member Functions", - "pages": [ - "..." - ] + "title": "Member Functions", + "pages": ["..."] } diff --git a/content/docs/(functions)/Member/moveUser.mdx b/content/docs/(functions)/Member/moveUser.mdx index 60623b83..c95ffb62 100644 --- a/content/docs/(functions)/Member/moveUser.mdx +++ b/content/docs/(functions)/Member/moveUser.mdx @@ -6,7 +6,7 @@ Moves a user to a different voice channel, or disconnects them from their curren ## Usage -```bash +```php $moveUser[userID;channelID;reason] ``` 1. **userID** - The ID of user to be moved. diff --git a/content/docs/(functions)/Member/muteUser.mdx b/content/docs/(functions)/Member/muteUser.mdx index 4cf6c1ca..2f6a903a 100644 --- a/content/docs/(functions)/Member/muteUser.mdx +++ b/content/docs/(functions)/Member/muteUser.mdx @@ -6,7 +6,7 @@ Mutes or unmutes a user in a voice channel. ## Usage -```bash +```php $muteUser[userID;mute;reason] ``` 1. **userID** - (Optional) default value: `$authorID`. The ID of user to mute diff --git a/content/docs/(functions)/Member/nickname.mdx b/content/docs/(functions)/Member/nickname.mdx index ab822f58..781ab232 100644 --- a/content/docs/(functions)/Member/nickname.mdx +++ b/content/docs/(functions)/Member/nickname.mdx @@ -6,7 +6,7 @@ Returns the nickname of the user or the display name if you specified the 2nd in ## Usage -```bash +```php $nickname[User ID;Return Display name if no nickname exists (yes/no, default is no)] ``` 1. **User ID** - (Optional) default value: `$authorID`. The ID of user to return nickname from. diff --git a/content/docs/(functions)/Member/status.mdx b/content/docs/(functions)/Member/status.mdx index b6ad9446..683a3183 100644 --- a/content/docs/(functions)/Member/status.mdx +++ b/content/docs/(functions)/Member/status.mdx @@ -8,7 +8,7 @@ Returns the status of a user. Can be `online`, `offline`, `idle` or `dnd`. ## Usage -```bash +```php $status[userID] ``` 1. **userID** - (Optional) default value: `$authorID`. The ID of user to return the status from. diff --git a/content/docs/(functions)/Member/unban.mdx b/content/docs/(functions)/Member/unban.mdx index deeac3d5..223d7fb3 100644 --- a/content/docs/(functions)/Member/unban.mdx +++ b/content/docs/(functions)/Member/unban.mdx @@ -6,7 +6,7 @@ Unbans a user from the server. ## Usage -```bash +```php $unban[userID/username;reason] ``` 1. **userID/username** - The ID or username of user to unban. diff --git a/content/docs/(functions)/Member/upvoteReferralUserID.mdx b/content/docs/(functions)/Member/upvoteReferralUserID.mdx index da84275e..f4cce14b 100644 --- a/content/docs/(functions)/Member/upvoteReferralUserID.mdx +++ b/content/docs/(functions)/Member/upvoteReferralUserID.mdx @@ -6,7 +6,7 @@ Returns the ID of the user whose referral link was used for the current upvote. ## Usage -```bash +```php $upvoteReferralUserID ``` diff --git a/content/docs/(functions)/Member/user.mdx b/content/docs/(functions)/Member/user.mdx index 9a9451f0..7cd59b4d 100644 --- a/content/docs/(functions)/Member/user.mdx +++ b/content/docs/(functions)/Member/user.mdx @@ -7,7 +7,7 @@ Retrieve an information about user given his user id, like his username. Multiple options to retrive informations from user. ## Usage -```bash +```php $user[userID;option] ``` diff --git a/content/docs/(functions)/Member/userAvatar.mdx b/content/docs/(functions)/Member/userAvatar.mdx index e91fc98c..feec253f 100644 --- a/content/docs/(functions)/Member/userAvatar.mdx +++ b/content/docs/(functions)/Member/userAvatar.mdx @@ -5,7 +5,7 @@ title: "$userAvatar" Returns the avatar (profile picture) URL of the user who was specified. ## Usage -```bash +```php $userAvatar[userID;size;dynamic;serverAvatar] ``` 1. **userID** - (Optional) default value: `$authorID`. The ID of a user you want to return avatar URL from. diff --git a/content/docs/(functions)/Member/userBanner.mdx b/content/docs/(functions)/Member/userBanner.mdx index bea520fd..7d5a092d 100644 --- a/content/docs/(functions)/Member/userBanner.mdx +++ b/content/docs/(functions)/Member/userBanner.mdx @@ -6,7 +6,7 @@ Returns the banner URL of a user. ## Usage -```bash +```php $userBanner[userID] ``` 1. **userID** - (Optional) default value: `$authorID`. The ID of a user you want to return banner URL from. If no banner is found, returns `undefined`. diff --git a/content/docs/(functions)/Member/userConnectedVC.mdx b/content/docs/(functions)/Member/userConnectedVC.mdx index d11e2062..b52d9161 100644 --- a/content/docs/(functions)/Member/userConnectedVC.mdx +++ b/content/docs/(functions)/Member/userConnectedVC.mdx @@ -6,7 +6,7 @@ Returns the ID of a voice channel the user is currently connected to. ## Usage -```bash +```php $userConnectedVC[userID] ``` 1. **userID** - (Optional) default value: `$authorID`. The ID of a user you want to return voice channel they are connected to. diff --git a/content/docs/(functions)/Member/userExists.mdx b/content/docs/(functions)/Member/userExists.mdx index 5973a4cb..fd2eb3bd 100644 --- a/content/docs/(functions)/Member/userExists.mdx +++ b/content/docs/(functions)/Member/userExists.mdx @@ -6,7 +6,7 @@ Checks if a user exists in the server. Returns `true` if the user exists, and `f ## Usage -```bash +```php $userExists[userID] ``` 1. **userID** - The ID of the user to check. If left empty, false will be returned. diff --git a/content/docs/(functions)/Member/userID.mdx b/content/docs/(functions)/Member/userID.mdx index ba2ae5a8..23bbd416 100644 --- a/content/docs/(functions)/Member/userID.mdx +++ b/content/docs/(functions)/Member/userID.mdx @@ -5,7 +5,7 @@ title: "$userID" Returns a user ID based on the given username. ## Usage -```bash +```php $userID[username] ``` 1. **username** - (Optional) if not provided, $authorID will be returned. The username of a user you want to return ID of. diff --git a/content/docs/(functions)/Member/userPerms.mdx b/content/docs/(functions)/Member/userPerms.mdx index 1abcd0a9..d9495f75 100644 --- a/content/docs/(functions)/Member/userPerms.mdx +++ b/content/docs/(functions)/Member/userPerms.mdx @@ -6,7 +6,7 @@ Returns a list of permissions a user has across the server based on their roles. ## Usage -```bash +```php $userPerms[userID;separator] ``` 1. **userID** - (Optional) default value: `$authorID`. The ID of a user you want to return permissions from. diff --git a/content/docs/(functions)/Member/userReacted.mdx b/content/docs/(functions)/Member/userReacted.mdx index 123ac8b4..dd07b4a6 100644 --- a/content/docs/(functions)/Member/userReacted.mdx +++ b/content/docs/(functions)/Member/userReacted.mdx @@ -6,7 +6,7 @@ Checks if a user has reacted to a message with the given emoji. Returns `true` o ## Usage -```bash +```php $userReacted[channelID;messageID;userID;reaction] ``` 1. **channelID** - (Optional) default value: `$channelID`. The ID of a channel you want to check reaction in. diff --git a/content/docs/(functions)/Member/userRoleColor.mdx b/content/docs/(functions)/Member/userRoleColor.mdx index a70dd9dc..3017930a 100644 --- a/content/docs/(functions)/Member/userRoleColor.mdx +++ b/content/docs/(functions)/Member/userRoleColor.mdx @@ -6,7 +6,7 @@ Returns the hex color code of the users highest role. ## Usage -```bash +```php $userRoleColor[userID] ``` 1. **userID** - (Optional) default value: `$authorID`. The ID of a user you want to return top role color from. diff --git a/content/docs/(functions)/Member/userTag.mdx b/content/docs/(functions)/Member/userTag.mdx index 11f345c1..441b58eb 100644 --- a/content/docs/(functions)/Member/userTag.mdx +++ b/content/docs/(functions)/Member/userTag.mdx @@ -6,7 +6,7 @@ Returns the username and tag (discriminator) of a user. ## Usage -```bash +```php $userTag[userID] ``` 1. **userID** - (Opional) default value: `$authorID`. The ID of a user you want to return username and tag from. diff --git a/content/docs/(functions)/Member/username.mdx b/content/docs/(functions)/Member/username.mdx index cd1e0b24..9dcd4284 100644 --- a/content/docs/(functions)/Member/username.mdx +++ b/content/docs/(functions)/Member/username.mdx @@ -6,7 +6,7 @@ Returns the username of the given user. ## Usage -```bash +```php $username[userID] ``` 1. **userID** - (Optional) default value: `$authorID`. The ID of a user you want to return nickname from. diff --git a/content/docs/(functions)/Member/usersBanned.mdx b/content/docs/(functions)/Member/usersBanned.mdx index 3e140d90..ee61ae50 100644 --- a/content/docs/(functions)/Member/usersBanned.mdx +++ b/content/docs/(functions)/Member/usersBanned.mdx @@ -6,7 +6,7 @@ Returns a list of users banned from the current server. ## Usage -```bash +```php $usersBanned[type;separator] ``` 1. **type** - (Optional) default value: `username`. Can be `id`, `username` or `mention`. What format of returned users do you want. diff --git a/content/docs/(functions)/Member/usersInChannel.mdx b/content/docs/(functions)/Member/usersInChannel.mdx index 6b57bec9..e09d13eb 100644 --- a/content/docs/(functions)/Member/usersInChannel.mdx +++ b/content/docs/(functions)/Member/usersInChannel.mdx @@ -6,7 +6,7 @@ Returns a list of users in given text or voice channel. ## Usage -```bash +```php $usersInChannel[channelID;type;separator] ``` 1. **channelID** - (Optional) default value: `$channelID`. The ID of a channel you want to return list of users from. diff --git a/content/docs/(functions)/Member/usersTyping.mdx b/content/docs/(functions)/Member/usersTyping.mdx index 449ff4ec..11fed9e8 100644 --- a/content/docs/(functions)/Member/usersTyping.mdx +++ b/content/docs/(functions)/Member/usersTyping.mdx @@ -6,7 +6,7 @@ Returns a list of users currently typing in a channel. If no users are typing, r ## Usage -```bash +```php $usersTyping[channelID;type;separator] ``` 1. **channelID** - (Optional) default value: `$channelID`. The ID of a channel you want to check users typing in. diff --git a/content/docs/(functions)/Member/usersWithRole.mdx b/content/docs/(functions)/Member/usersWithRole.mdx index 72064f04..e3571706 100644 --- a/content/docs/(functions)/Member/usersWithRole.mdx +++ b/content/docs/(functions)/Member/usersWithRole.mdx @@ -6,7 +6,7 @@ Returns a list of users who have the given role. ## Usage -```bash +```php $usersWithRole[roleID;separator;type] ``` 1. **roleID** - (Optional) default value: (users without any roles). The ID of a role you want to retrive users with. diff --git a/content/docs/(functions)/Message/argsCheck.mdx b/content/docs/(functions)/Message/argsCheck.mdx index 469482a1..ceae1c0b 100644 --- a/content/docs/(functions)/Message/argsCheck.mdx +++ b/content/docs/(functions)/Message/argsCheck.mdx @@ -10,7 +10,7 @@ This function checks if the user has provided the correct number of arguments. I ## Syntax -```bash +```php $argsCheck[(>//1;You need to provide at least two arguments!] ``` @@ -43,7 +43,7 @@ This ensures the user provides more than one argument (e.g., 2, 3, 4, etc.). If **3. Checking for Less Than 3 Arguments:** -```bash +```php $argsCheck[<3;Please provide fewer than three arguments.] ``` @@ -51,7 +51,7 @@ This checks if the user provides less than three arguments (e.g., 0, 1, or 2 arg **4. Checking for Exactly 1 Argument with No Error Message:** -```bash +```php $argsCheck[1;] ``` diff --git a/content/docs/(functions)/Message/argsCount.mdx b/content/docs/(functions)/Message/argsCount.mdx index c15cd004..295cb5e8 100644 --- a/content/docs/(functions)/Message/argsCount.mdx +++ b/content/docs/(functions)/Message/argsCount.mdx @@ -6,6 +6,6 @@ This function returns the number of arguments a user has provided to your bot's ## Usage -```bash +```php $argsCount ``` diff --git a/content/docs/(functions)/Message/awaitMessage.mdx b/content/docs/(functions)/Message/awaitMessage.mdx index 518e1e2e..820dff39 100644 --- a/content/docs/(functions)/Message/awaitMessage.mdx +++ b/content/docs/(functions)/Message/awaitMessage.mdx @@ -6,7 +6,7 @@ The `$awaitMessage` function allows your bot to wait for a specific user's messa ## Usage -```bash +```php $awaitMessage[message;userid / everyone;timeout;return message ID instead of content] ``` @@ -35,7 +35,7 @@ The `timeout` parameter specifies how long the bot will wait for a user's messag This example sends the message "Are you tall?" and waits for the user who executed the command to respond. It then displays the user's answer. -```discord +```php !!exec Your answer is: $awaitMessage[Are you tall?;$authorID] ``` diff --git a/content/docs/(functions)/Message/deleteCommand.mdx b/content/docs/(functions)/Message/deleteCommand.mdx index 0ba69223..a865c413 100644 --- a/content/docs/(functions)/Message/deleteCommand.mdx +++ b/content/docs/(functions)/Message/deleteCommand.mdx @@ -6,19 +6,19 @@ deletes the user's message that triggered the command ## Usage -```bash +```php $deleteCommand[Time Delete After (optional, i.e 30s)] ``` ### Example (Delete User Message Immediately): -```bash +```php $deleteCommand ``` ### Example (Delete Message After Certain Time): -```bash +```php $deleteCommand[1m] ``` diff --git a/content/docs/(functions)/Message/disableChannelMentions.mdx b/content/docs/(functions)/Message/disableChannelMentions.mdx index d5dc29b1..aa0767f4 100644 --- a/content/docs/(functions)/Message/disableChannelMentions.mdx +++ b/content/docs/(functions)/Message/disableChannelMentions.mdx @@ -8,7 +8,7 @@ This function prevents the bot from mentioning any channels within a message. Th Simply include `$disableChannelMentions` in your code. It doesn't require any arguments. -```bash +```php $disableChannelMentions ``` @@ -16,7 +16,7 @@ $disableChannelMentions Let's say you have a command that echoes back a user's input. If the user includes a channel mention (`#general`), normally the bot would ping that channel. By using `$disableChannelMentions`, the bot will send the message, but the channel mention will be rendered as plain text and *won't* send a notification. -```bash +```php $disableChannelMentions $message ``` diff --git a/content/docs/(functions)/Message/disableEveryoneMentions.mdx b/content/docs/(functions)/Message/disableEveryoneMentions.mdx index 054cc24a..96c92b3b 100644 --- a/content/docs/(functions)/Message/disableEveryoneMentions.mdx +++ b/content/docs/(functions)/Message/disableEveryoneMentions.mdx @@ -8,7 +8,7 @@ This command disables the ability for users to mention everyone in the channel u Simply use the command: -```bash +```php $disableEveryoneMentions ``` diff --git a/content/docs/(functions)/Message/editEmbed.mdx b/content/docs/(functions)/Message/editEmbed.mdx index 0834da85..0c6e1332 100644 --- a/content/docs/(functions)/Message/editEmbed.mdx +++ b/content/docs/(functions)/Message/editEmbed.mdx @@ -6,7 +6,7 @@ Edit an existing embed within a specified message. ## Usage -```bash +```php $editEmbed[channel id (optional);message id (optional);New data (curl);Embed Number (optional, default 1)] ``` diff --git a/content/docs/(functions)/Message/editIn.mdx b/content/docs/(functions)/Message/editIn.mdx index fb7855f1..2fb398fe 100644 --- a/content/docs/(functions)/Message/editIn.mdx +++ b/content/docs/(functions)/Message/editIn.mdx @@ -6,7 +6,7 @@ Edits a bot's message after a specified delay. This function allows you to updat ## Usage -```bash +```php $editIn[time;new message] ``` @@ -17,7 +17,7 @@ $editIn[time;new message] ## Example: -```bash +```php Rolling the dice... $editIn[3s;You got $random[1;6]] ``` diff --git a/content/docs/(functions)/Message/emojiToString.mdx b/content/docs/(functions)/Message/emojiToString.mdx index 22fd544b..dae8db9f 100644 --- a/content/docs/(functions)/Message/emojiToString.mdx +++ b/content/docs/(functions)/Message/emojiToString.mdx @@ -10,7 +10,7 @@ This function returns the actual emoji that a user reacted with in a reaction ad ## Usage -```bash +```php $emojiToString ``` diff --git a/content/docs/(functions)/Message/emojisFromMessage.mdx b/content/docs/(functions)/Message/emojisFromMessage.mdx index 9113df8f..6c6a6d6b 100644 --- a/content/docs/(functions)/Message/emojisFromMessage.mdx +++ b/content/docs/(functions)/Message/emojisFromMessage.mdx @@ -10,7 +10,7 @@ You can use `$emojisFromMessage` in two ways: **1. From User Message (Default):** -```bash +```php $emojisFromMessage ``` @@ -18,7 +18,7 @@ This will extract emojis from the message that triggered the command. **2. From Custom Text:** -```bash +```php $emojisFromMessage[text;separator (optional)] ``` diff --git a/content/docs/(functions)/Message/enableEveryoneMentions.mdx b/content/docs/(functions)/Message/enableEveryoneMentions.mdx index 0fdcb792..cebf69e1 100644 --- a/content/docs/(functions)/Message/enableEveryoneMentions.mdx +++ b/content/docs/(functions)/Message/enableEveryoneMentions.mdx @@ -8,7 +8,7 @@ This command allows you to enable the use of `@everyone` mentions in your Discor Simply run the `$enableEveryoneMentions` command. -```bash +```php $enableEveryoneMentions ``` diff --git a/content/docs/(functions)/Message/getEmbed.mdx b/content/docs/(functions)/Message/getEmbed.mdx index e35d9883..4c8cce2c 100644 --- a/content/docs/(functions)/Message/getEmbed.mdx +++ b/content/docs/(functions)/Message/getEmbed.mdx @@ -6,7 +6,7 @@ Retrieves information from an embed within a specific message. This function all ## Usage -```bash +```php $getEmbed[Channel ID (optional);Message ID (optional);Info (optional, default is description);Embed Number (optional, default is 1)] ``` diff --git a/content/docs/(functions)/Message/getMessage.mdx b/content/docs/(functions)/Message/getMessage.mdx index 64451f8b..ec28ef5c 100644 --- a/content/docs/(functions)/Message/getMessage.mdx +++ b/content/docs/(functions)/Message/getMessage.mdx @@ -6,7 +6,7 @@ Retrieves information about a specific message using its ID. This function allow ## Syntax -```bash +```php $getMessage[channelID;messageID;attribute] ``` @@ -26,7 +26,7 @@ Let's say you have a message with the ID `123456789012345678` in channel `987654 1. **Getting the message content:** - ```bash + ```php $getMessage[987654321098765432;123456789012345678;content] ``` @@ -34,7 +34,7 @@ Let's say you have a message with the ID `123456789012345678` in channel `987654 2. **Getting the user ID of the message sender:** - ```bash + ```php $getMessage[987654321098765432;123456789012345678;userID] ``` @@ -42,7 +42,7 @@ Let's say you have a message with the ID `123456789012345678` in channel `987654 3. **Getting the embed description (if the message contains an embed):** - ```bash + ```php $getMessage[987654321098765432;123456789012345678;desc] ``` diff --git a/content/docs/(functions)/Message/getMessageReactions.mdx b/content/docs/(functions)/Message/getMessageReactions.mdx index c70b14b4..3e6e47e6 100644 --- a/content/docs/(functions)/Message/getMessageReactions.mdx +++ b/content/docs/(functions)/Message/getMessageReactions.mdx @@ -10,7 +10,7 @@ The `$getMessageReactions` command allows you to list the reactions (emojis) tha ## Usage -```bash +```php $getMessageReactions[Channel ID (optional);Message ID (optional);Separator (optional)] ``` @@ -24,7 +24,7 @@ $getMessageReactions[Channel ID (optional);Message ID (optional);Separator (opti * **Get reactions from the current message in the current channel (most common use):** - ```bash + ```php $getMessageReactions ``` @@ -32,7 +32,7 @@ $getMessageReactions[Channel ID (optional);Message ID (optional);Separator (opti * **Get reactions from a specific message in the current channel:** - ```bash + ```php $getMessageReactions[$messageID] ``` @@ -40,7 +40,7 @@ $getMessageReactions[Channel ID (optional);Message ID (optional);Separator (opti * **Get reactions from a specific message in a specific channel:** - ```bash + ```php $getMessageReactions[123456789012345678;987654321098765432] ``` @@ -48,7 +48,7 @@ $getMessageReactions[Channel ID (optional);Message ID (optional);Separator (opti * **Get reactions from a specific message in a specific channel, using a custom separator:** - ```bash + ```php $getMessageReactions[123456789012345678;987654321098765432; | ] ``` diff --git a/content/docs/(functions)/Message/getReactionCount.mdx b/content/docs/(functions)/Message/getReactionCount.mdx index 8c1d4d49..2920cb74 100644 --- a/content/docs/(functions)/Message/getReactionCount.mdx +++ b/content/docs/(functions)/Message/getReactionCount.mdx @@ -6,7 +6,7 @@ Get the number of reactions for a specific emoji on a message. ## Usage -```bash +```php $getReactionCount[channelID;messageID;reaction] ``` diff --git a/content/docs/(functions)/Message/hasEmbeds.mdx b/content/docs/(functions)/Message/hasEmbeds.mdx index 955694a7..a1b848a1 100644 --- a/content/docs/(functions)/Message/hasEmbeds.mdx +++ b/content/docs/(functions)/Message/hasEmbeds.mdx @@ -10,7 +10,7 @@ It returns `true` if the message contains at least one embed, and `false` otherw ## Syntax -```bash +```php $hasEmbeds[channelID;messageID] ``` @@ -23,7 +23,7 @@ $hasEmbeds[channelID;messageID] Let's say you want to check if a message with ID `1234567890` in channel `9876543210` has any embeds. You would use the following: -```bash +```php $hasEmbeds[9876543210;1234567890] ``` diff --git a/content/docs/(functions)/Message/meta.json b/content/docs/(functions)/Message/meta.json index 72adffee..bba1e677 100644 --- a/content/docs/(functions)/Message/meta.json +++ b/content/docs/(functions)/Message/meta.json @@ -1,6 +1,4 @@ { - "title": "Message Functions", - "pages": [ - "..." - ] + "title": "Message Functions", + "pages": ["..."] } diff --git a/content/docs/(functions)/Message/pinMessage.mdx b/content/docs/(functions)/Message/pinMessage.mdx index da0afb95..abee60d0 100644 --- a/content/docs/(functions)/Message/pinMessage.mdx +++ b/content/docs/(functions)/Message/pinMessage.mdx @@ -14,7 +14,7 @@ There are two ways to use `$pinMessage`: **1. Pin the Command Message:** - ```bash + ```php $pinMessage ``` @@ -22,7 +22,7 @@ There are two ways to use `$pinMessage`: **2. Pin a Specific Message:** - ```bash + ```php $pinMessage[channelID;messageID] ``` @@ -33,7 +33,7 @@ There are two ways to use `$pinMessage`: To pin a message with the ID `123456789012345678` in the channel with the ID `987654321098765432`, you would use: - ```bash + ```php $pinMessage[987654321098765432;123456789012345678] ``` diff --git a/content/docs/(functions)/Message/poll.mdx b/content/docs/(functions)/Message/poll.mdx index 378270f5..8cf42622 100644 --- a/content/docs/(functions)/Message/poll.mdx +++ b/content/docs/(functions)/Message/poll.mdx @@ -6,7 +6,7 @@ retrieve information about a poll in a message ## Usage -```bash +```php $poll[Channel ID (default $channelID);Message ID (default $messageID);data] ``` diff --git a/content/docs/(functions)/Message/referenceChannelID.mdx b/content/docs/(functions)/Message/referenceChannelID.mdx index b290a1ba..033ea9b3 100644 --- a/content/docs/(functions)/Message/referenceChannelID.mdx +++ b/content/docs/(functions)/Message/referenceChannelID.mdx @@ -8,7 +8,7 @@ This variable is useful when you need to know the channel where the original mes ## Syntax -```bash +```php $referenceChannelID ``` diff --git a/content/docs/(functions)/Message/reply.mdx b/content/docs/(functions)/Message/reply.mdx index bad37f2d..a436e10d 100644 --- a/content/docs/(functions)/Message/reply.mdx +++ b/content/docs/(functions)/Message/reply.mdx @@ -6,7 +6,7 @@ This command allows your bot to reply to a specific message within a channel. I ## Usage -```bash +```php $reply[messageID (optional); mention on reply (yes/no, default is no)] ``` @@ -24,7 +24,7 @@ $reply[messageID (optional); mention on reply (yes/no, default is no)] This example demonstrates how to reply to the user's message and ping them in the reply. -```bash +```php Hello $username! $reply[$messageID;yes] ``` @@ -42,7 +42,7 @@ $reply[$messageID;yes] This example shows how to reply to the user's message without mentioning them. -```bash +```php Hello $username! $reply[$messageID;no] ``` diff --git a/content/docs/(functions)/Message/sendCrosspostingMessage.mdx b/content/docs/(functions)/Message/sendCrosspostingMessage.mdx index 830a8d72..afffb1c5 100644 --- a/content/docs/(functions)/Message/sendCrosspostingMessage.mdx +++ b/content/docs/(functions)/Message/sendCrosspostingMessage.mdx @@ -6,7 +6,7 @@ Send a message to multiple channels simultaneously. This function is useful for ## Syntax -```bash +```php $sendCrosspostingMessage[message;channel1;channel2;...] ``` @@ -22,7 +22,7 @@ $sendCrosspostingMessage[message;channel1;channel2;...] This example demonstrates sending the message "Hello World!" to the channels named `#general` and `#off-topics`. -```bash +```php $sendCrosspostingMessage[Hello World!;general;off-topics] ``` @@ -30,7 +30,7 @@ $sendCrosspostingMessage[Hello World!;general;off-topics] To use Channel IDs instead of names, you'll need to enable Developer Mode in Discord. Go to User Settings -> Advanced, and toggle Developer Mode on. Then, right-click on the channel you want to use and select "Copy ID." You can then paste this ID into the `$sendCrosspostingMessage` function. For example: -```bash +```php $sendCrosspostingMessage[Hello World!;123456789012345678;987654321098765432] ``` diff --git a/content/docs/(functions)/Message/sendMessage.mdx b/content/docs/(functions)/Message/sendMessage.mdx index 7d5f8220..be68ef5d 100644 --- a/content/docs/(functions)/Message/sendMessage.mdx +++ b/content/docs/(functions)/Message/sendMessage.mdx @@ -15,7 +15,7 @@ Sends a message to the channel where the command was executed. **Example:** -```discord +```php !!exec $sendMessage[This is a fantastic message!;no] ``` diff --git a/content/docs/(functions)/Message/sendWebhook.mdx b/content/docs/(functions)/Message/sendWebhook.mdx index f266a163..af464a69 100644 --- a/content/docs/(functions)/Message/sendWebhook.mdx +++ b/content/docs/(functions)/Message/sendWebhook.mdx @@ -15,11 +15,11 @@ Sends a message via a Discord webhook using its ID and token. #### Example: -```discord +```php !!exec $sendWebhook[98723xxxx...;K9oJxxxx...;Hello world!] ``` -```discord +```php Webhook: Hello world! ``` diff --git a/content/docs/(functions)/Message/sentMessageID.mdx b/content/docs/(functions)/Message/sentMessageID.mdx index b5e4fea0..ad85db71 100644 --- a/content/docs/(functions)/Message/sentMessageID.mdx +++ b/content/docs/(functions)/Message/sentMessageID.mdx @@ -10,7 +10,7 @@ This function allows you to retrieve the message ID of the most recently sent me Simply use `$sentMessageID` in your commands to reference the last message's ID. -```bash +```php $sentMessageID ``` @@ -18,7 +18,7 @@ $sentMessageID This example demonstrates how to send a message, wait for 3 seconds, and then delete the message using its ID obtained with `$sentMessageID`. -```bash +```php $sendMessage[Hello World] $wait[3s] $deleteMessage[$sentMessageID] diff --git a/content/docs/(functions)/Random/meta.json b/content/docs/(functions)/Random/meta.json index 4d8780e0..24e1d9b4 100644 --- a/content/docs/(functions)/Random/meta.json +++ b/content/docs/(functions)/Random/meta.json @@ -1,6 +1,4 @@ { - "title": "Random Functions", - "pages": [ - "..." - ] + "title": "Random Functions", + "pages": ["..."] } diff --git a/content/docs/(functions)/Random/random.mdx b/content/docs/(functions)/Random/random.mdx index 115cb71c..d454155c 100644 --- a/content/docs/(functions)/Random/random.mdx +++ b/content/docs/(functions)/Random/random.mdx @@ -22,7 +22,7 @@ This function returns a random number within a specified range. **Example:** -```discord +```php !!exec $random[1;6] ``` diff --git a/content/docs/(functions)/Random/randomChannelID.mdx b/content/docs/(functions)/Random/randomChannelID.mdx index d027696f..36ff4c19 100644 --- a/content/docs/(functions)/Random/randomChannelID.mdx +++ b/content/docs/(functions)/Random/randomChannelID.mdx @@ -12,13 +12,13 @@ Simply use `$randomChannelID` in your command or custom function. **Example:** -```discord +```php !!exec $randomChannelID ``` **Result:** -```discord +```php 37907890789087988 ``` diff --git a/content/docs/(functions)/Random/randomTextBiased.mdx b/content/docs/(functions)/Random/randomTextBiased.mdx index 935a0a25..0f3776e2 100644 --- a/content/docs/(functions)/Random/randomTextBiased.mdx +++ b/content/docs/(functions)/Random/randomTextBiased.mdx @@ -6,7 +6,7 @@ Similar to `$randomText`, but with weighted randomness! This allows you to influ ## Usage -```bash +```php $randomTextBiased[Text1,Weight1;Text2,Weight2;Text3,Weight3] ``` diff --git a/content/docs/(functions)/Request/httpRequest.mdx b/content/docs/(functions)/Request/httpRequest.mdx index 54544e99..6ede0fe4 100644 --- a/content/docs/(functions)/Request/httpRequest.mdx +++ b/content/docs/(functions)/Request/httpRequest.mdx @@ -6,7 +6,7 @@ Performs an HTTP request with the specified content and headers, then returns th ## Usage -```bash +```php $httpRequest[URL;Method;Content;Header 1;Header 2;...] ``` diff --git a/content/docs/(functions)/Request/httpRequestHeader.mdx b/content/docs/(functions)/Request/httpRequestHeader.mdx index 84fee0c0..1d202cd7 100644 --- a/content/docs/(functions)/Request/httpRequestHeader.mdx +++ b/content/docs/(functions)/Request/httpRequestHeader.mdx @@ -6,7 +6,7 @@ Returns the value of a given header from the last request. ## Usage -```bash +```php $httpRequestHeader[header name] ``` 1. **header name** - The header name to return value from. (case-insensitive) diff --git a/content/docs/(functions)/Request/httpRequestStatus.mdx b/content/docs/(functions)/Request/httpRequestStatus.mdx index 7c8556a9..2e5aad04 100644 --- a/content/docs/(functions)/Request/httpRequestStatus.mdx +++ b/content/docs/(functions)/Request/httpRequestStatus.mdx @@ -6,7 +6,7 @@ Returns the $httpRequest status code of the last request. ## Usage -```bash +```php $httpRequestStatus ``` diff --git a/content/docs/(functions)/Request/meta.json b/content/docs/(functions)/Request/meta.json index 4e272440..5df44260 100644 --- a/content/docs/(functions)/Request/meta.json +++ b/content/docs/(functions)/Request/meta.json @@ -1,6 +1,4 @@ { - "title": "Http Requests functions", - "pages": [ - "..." - ] + "title": "Http Requests functions", + "pages": ["..."] } diff --git a/content/docs/(functions)/Role/blackListRoleIDs.mdx b/content/docs/(functions)/Role/blackListRoleIDs.mdx index 7f13aa0f..d4a4e730 100644 --- a/content/docs/(functions)/Role/blackListRoleIDs.mdx +++ b/content/docs/(functions)/Role/blackListRoleIDs.mdx @@ -15,7 +15,7 @@ This function prevents users with specific roles from using a command. You speci Let's say you have a command `!ban` and you want to prevent users with a specific role from using it. -```bash +```php $blackListRoleIds[9872xx..;You are not authorized to use this command!] $ban[$mentioned[1]] Successfully banned user. diff --git a/content/docs/(functions)/Role/highestRole.mdx b/content/docs/(functions)/Role/highestRole.mdx index 35703da9..bad9c201 100644 --- a/content/docs/(functions)/Role/highestRole.mdx +++ b/content/docs/(functions)/Role/highestRole.mdx @@ -16,7 +16,7 @@ Retrieves the highest role (in terms of hierarchy) a user has in the current gui This example shows how to use `$highestRole` with `$roleName` to output the role's name. -```discord +```php !!exec $roleName[$highestRole] ``` @@ -24,7 +24,7 @@ This example shows how to use `$highestRole` with `$roleName` to output the role (Assuming the user's highest role is "Admin") -```discord +```php Admin ``` diff --git a/content/docs/(functions)/Role/lowestRole.mdx b/content/docs/(functions)/Role/lowestRole.mdx index 8eeed915..5b0d915f 100644 --- a/content/docs/(functions)/Role/lowestRole.mdx +++ b/content/docs/(functions)/Role/lowestRole.mdx @@ -15,7 +15,7 @@ Returns the user's lowest role in the current guild. You can specify a user ID, This example retrieves the role ID of the user's lowest role and displays it. -```discord +```php !!exec $roleName[$lowestRole] ``` @@ -27,7 +27,7 @@ This example retrieves the role ID of the user's lowest role and displays it. **Discord Output:** -```discord +```php Member ``` diff --git a/content/docs/(functions)/Role/mentionRole.mdx b/content/docs/(functions)/Role/mentionRole.mdx index b01e4ced..cb3c9d95 100644 --- a/content/docs/(functions)/Role/mentionRole.mdx +++ b/content/docs/(functions)/Role/mentionRole.mdx @@ -6,18 +6,18 @@ mention a role by name or id ## Usage -```bash +```php $mentionRole[Name/ID] ``` ### Example: -```bash +```php $mentionRole[Member] ``` ### Example: -```bash +```php $mentionRole[1234567898765431] ``` \ No newline at end of file diff --git a/content/docs/(functions)/Role/meta.json b/content/docs/(functions)/Role/meta.json index a6324a71..2e3cc6e0 100644 --- a/content/docs/(functions)/Role/meta.json +++ b/content/docs/(functions)/Role/meta.json @@ -1,6 +1,4 @@ { - "title": "Role Functions", - "pages": [ - "..." - ] + "title": "Role Functions", + "pages": ["..."] } diff --git a/content/docs/(functions)/Role/modifyUserRoles.mdx b/content/docs/(functions)/Role/modifyUserRoles.mdx index 80144fcf..e8bde9c7 100644 --- a/content/docs/(functions)/Role/modifyUserRoles.mdx +++ b/content/docs/(functions)/Role/modifyUserRoles.mdx @@ -12,7 +12,7 @@ This function allows you to modify a user's roles by adding, removing, or toggli ## Usage -```bash +```php $modifyUserRoles[User ID;[op]Role 1;[op]Role 2;...] ``` @@ -25,7 +25,7 @@ $modifyUserRoles[User ID;[op]Role 1;[op]Role 2;...] Let's say you want to add the "VIP" role and remove the "Newbie" role from a user. Here's how you would do it: -```bash +```php $modifyUserRoles[$authorID;+VIP;-Newbie] ``` diff --git a/content/docs/(functions)/Role/roleExists.mdx b/content/docs/(functions)/Role/roleExists.mdx index dd4adfe9..7efb25c8 100644 --- a/content/docs/(functions)/Role/roleExists.mdx +++ b/content/docs/(functions)/Role/roleExists.mdx @@ -16,7 +16,7 @@ Checks if a role exists within the server and returns a boolean value (true or f **Example:** -```discord +```php !!exec $roleExists[$roleID[muted]] diff --git a/content/docs/(functions)/Role/roleIcon.mdx b/content/docs/(functions)/Role/roleIcon.mdx index c7823759..f63dd5d0 100644 --- a/content/docs/(functions)/Role/roleIcon.mdx +++ b/content/docs/(functions)/Role/roleIcon.mdx @@ -6,7 +6,7 @@ This function allows you to either retrieve or set the icon of a role within a g ## Usage -```bash +```php $roleIcon[role; icon (optional)] ``` @@ -21,7 +21,7 @@ $roleIcon[role; icon (optional)] This example demonstrates how to retrieve the icon of a role named "Support". -```bash +```php $roleIcon[Support] ``` @@ -33,7 +33,7 @@ $roleIcon[Support] This example sets the icon of a role named "Member" using an image URL. -```bash +```php $roleIcon[Member;https://cdn-icons-png.flaticon.com/512/6080/6080057.png] ``` @@ -43,7 +43,7 @@ $roleIcon[Member;https://cdn-icons-png.flaticon.com/512/6080/6080057.png] This example sets the icon of a role named "Member" using a custom emoji. -```bash +```php $roleIcon[Member;<:happy:862641528890851328>] ``` diff --git a/content/docs/(functions)/Role/setRoles.mdx b/content/docs/(functions)/Role/setRoles.mdx index 76678908..12439623 100644 --- a/content/docs/(functions)/Role/setRoles.mdx +++ b/content/docs/(functions)/Role/setRoles.mdx @@ -19,7 +19,7 @@ $setRoles[userID;roleID 1;roleID 2;roleID 3;...] Sets the command executor's roles to only the "Muted" role. -```discord +```php !!exec $setRoles[$authorID;$roleID[Muted]] ``` diff --git a/content/docs/(functions)/Server/createAutomodKeyword.mdx b/content/docs/(functions)/Server/createAutomodKeyword.mdx index 184394f0..376c43b2 100644 --- a/content/docs/(functions)/Server/createAutomodKeyword.mdx +++ b/content/docs/(functions)/Server/createAutomodKeyword.mdx @@ -6,7 +6,7 @@ Creates a new auto-moderation rule based on keywords within the server. This all ## Usage -```bash +```php $createAutomodKeyword[ {name=Rule name} {keyword=Keyword to trigger on} @@ -63,7 +63,7 @@ $createAutomodKeyword[ ### Example: -```bash +```php $createAutomodKeyword[ {name=Block Fatty Words} {keyword=fat} diff --git a/content/docs/(functions)/Server/deleteEmojis.mdx b/content/docs/(functions)/Server/deleteEmojis.mdx index 3c0abc24..f9300fb4 100644 --- a/content/docs/(functions)/Server/deleteEmojis.mdx +++ b/content/docs/(functions)/Server/deleteEmojis.mdx @@ -6,7 +6,7 @@ Delete a custom emoji(s) from the server. ## Usage -```bash +```php $deleteEmojis[emoji1;emoji2;...] ``` diff --git a/content/docs/(functions)/Server/editAutomodKeyword.mdx b/content/docs/(functions)/Server/editAutomodKeyword.mdx index c7de2b4a..47b728d5 100644 --- a/content/docs/(functions)/Server/editAutomodKeyword.mdx +++ b/content/docs/(functions)/Server/editAutomodKeyword.mdx @@ -6,7 +6,7 @@ Modify an AutoMod rule of type "keywords" in the server. This function allows yo ## Usage -```bash +```php $editAutomodKeyword[ {id=Rule ID} {name=Rule name} @@ -79,7 +79,7 @@ $editAutomodKeyword[ ### Example: -```bash +```php $editAutomodKeyword[ {id=1234567} {name=Block Fatty Words Improved} diff --git a/content/docs/(functions)/Server/emojiCount.mdx b/content/docs/(functions)/Server/emojiCount.mdx index d9efd8fb..e324168d 100644 --- a/content/docs/(functions)/Server/emojiCount.mdx +++ b/content/docs/(functions)/Server/emojiCount.mdx @@ -6,7 +6,7 @@ Returns the amount of emojis in this server ## Usage -```bash +```php $emojiCount ``` diff --git a/content/docs/(functions)/Server/emojiExists.mdx b/content/docs/(functions)/Server/emojiExists.mdx index 35705984..549fda42 100644 --- a/content/docs/(functions)/Server/emojiExists.mdx +++ b/content/docs/(functions)/Server/emojiExists.mdx @@ -6,7 +6,7 @@ Checks if a given emoji ID is available to the bot. ## Usage -```bash +```php $emojiExists[emojiID] ``` @@ -16,7 +16,7 @@ $emojiExists[emojiID] ## Example -```bash +```php $emojiExists[123456789012345678] ``` diff --git a/content/docs/(functions)/Server/getInviteInfo.mdx b/content/docs/(functions)/Server/getInviteInfo.mdx index 40a8332e..c65744e4 100644 --- a/content/docs/(functions)/Server/getInviteInfo.mdx +++ b/content/docs/(functions)/Server/getInviteInfo.mdx @@ -6,7 +6,7 @@ Gets invite info from a given invite code. ## Usage -```bash +```php $getInviteInfo[code/url;Property] ``` @@ -47,7 +47,7 @@ If you leave the `Property` parameter empty (e.g., `$getInviteInfo[ZFQNZA4Ekz]`) ### Example -```discord +```php !!exec $getInviteInfo[ZFQNZA4Ekz;servername] ``` diff --git a/content/docs/(functions)/Server/getServerInvite.mdx b/content/docs/(functions)/Server/getServerInvite.mdx index 52f7d4df..cfb8554f 100644 --- a/content/docs/(functions)/Server/getServerInvite.mdx +++ b/content/docs/(functions)/Server/getServerInvite.mdx @@ -6,7 +6,7 @@ Creates an invite link to the current server. ## Usage -```bash +```php $getServerInvite ``` diff --git a/content/docs/(functions)/Server/meta.json b/content/docs/(functions)/Server/meta.json index 24b15fd1..4dd29917 100644 --- a/content/docs/(functions)/Server/meta.json +++ b/content/docs/(functions)/Server/meta.json @@ -1,6 +1,4 @@ { - "title": "Server Functions", - "pages": [ - "..." - ] + "title": "Server Functions", + "pages": ["..."] } diff --git a/content/docs/(functions)/Server/resolveEmojiID.mdx b/content/docs/(functions)/Server/resolveEmojiID.mdx index 9b912d57..57543d30 100644 --- a/content/docs/(functions)/Server/resolveEmojiID.mdx +++ b/content/docs/(functions)/Server/resolveEmojiID.mdx @@ -6,7 +6,7 @@ Resolves a full emoji, emoji name, or emoji ID into its ID. This function is use ## Usage -```bash +```php $resolveEmojiID[emoji string/name/id] ``` @@ -18,12 +18,12 @@ $resolveEmojiID[emoji string/name/id] Let's say you have a custom emoji named `cool_emoji` in your server. -```bash +```php $resolveEmojiID[cool_emoji] ``` This would return the unique ID associated with the `cool_emoji` emoji. -```bash +```php $resolveEmojiID[<:cool_emoji:123456789012345678>] ``` diff --git a/content/docs/(functions)/Server/securityPause.mdx b/content/docs/(functions)/Server/securityPause.mdx index a31ca006..d88a0dee 100644 --- a/content/docs/(functions)/Server/securityPause.mdx +++ b/content/docs/(functions)/Server/securityPause.mdx @@ -6,7 +6,7 @@ a beta feature, where discord allow you to pause invites and DMs for a period of ## Usage -```bash +```php $securityPause[Duration of Pause (i.e 2h);Pause Invite (Yes/No);Pause DM (Yes/No)] ``` @@ -14,16 +14,16 @@ $securityPause[Duration of Pause (i.e 2h);Pause Invite (Yes/No);Pause DM (Yes/No The value determines how much time a pause should be applied, maximum allowed duration is `24h` ### Example (Pause invites for 24 hours): -```bash +```php $securityPause[24h;yes;no] ``` ### Example (Pause DMs for 12 hours): -```bash +```php $securityPause[12h;no;yes] ``` ### Example (Pause invites and DMs for 24 hours): -```bash +```php $securityPause[24h;yes;yes] ``` \ No newline at end of file diff --git a/content/docs/(functions)/Stickers/createSticker.mdx b/content/docs/(functions)/Stickers/createSticker.mdx index a57fbffc..6c53579a 100644 --- a/content/docs/(functions)/Stickers/createSticker.mdx +++ b/content/docs/(functions)/Stickers/createSticker.mdx @@ -6,12 +6,12 @@ create a new sticker in the server ## Usage -```bash +```php $createSticker[name;image url;emoji;description (optional);return sticker id (yes/no)] ``` ### Example: -```bash +```php $createSticker[Happy Earth;https://media.discordapp.net/attachments/951590503370063872/1028690645222690867/happy_earth.png;😄;I'm happy when earth is happy] ``` diff --git a/content/docs/(functions)/Stickers/deleteSticker.mdx b/content/docs/(functions)/Stickers/deleteSticker.mdx index 4efc1f0e..af9aae4c 100644 --- a/content/docs/(functions)/Stickers/deleteSticker.mdx +++ b/content/docs/(functions)/Stickers/deleteSticker.mdx @@ -6,7 +6,7 @@ To delete a sticker inside the server ## Usage -```bash +```php $deleteSticker[Sticker ID] ``` diff --git a/content/docs/(functions)/Stickers/editSticker.mdx b/content/docs/(functions)/Stickers/editSticker.mdx index ff9e6009..53da2c5e 100644 --- a/content/docs/(functions)/Stickers/editSticker.mdx +++ b/content/docs/(functions)/Stickers/editSticker.mdx @@ -7,11 +7,11 @@ To edit a sticker inside the server\ ## Usage -```bash +```php $editSticker[Sticker ID;Info;New Value] ``` ### Example: -```bash +```php $editSticker[992974663099629588;name;MyNewSmily] ``` \ No newline at end of file diff --git a/content/docs/(functions)/Stickers/messageStickers.mdx b/content/docs/(functions)/Stickers/messageStickers.mdx index 591dfb81..15f3d5b7 100644 --- a/content/docs/(functions)/Stickers/messageStickers.mdx +++ b/content/docs/(functions)/Stickers/messageStickers.mdx @@ -7,7 +7,7 @@ To return the user message stickers (id)\ ## Usage -```bash +```php $messageStickers[Index] ``` diff --git a/content/docs/(functions)/Stickers/meta.json b/content/docs/(functions)/Stickers/meta.json index 7178dbf5..73da383a 100644 --- a/content/docs/(functions)/Stickers/meta.json +++ b/content/docs/(functions)/Stickers/meta.json @@ -1,6 +1,4 @@ { - "title": "Sticker Functions", - "pages": [ - "..." - ] + "title": "Sticker Functions", + "pages": ["..."] } diff --git a/content/docs/(functions)/Stickers/serverStickers.mdx b/content/docs/(functions)/Stickers/serverStickers.mdx index be48d8e9..1de551fe 100644 --- a/content/docs/(functions)/Stickers/serverStickers.mdx +++ b/content/docs/(functions)/Stickers/serverStickers.mdx @@ -6,7 +6,7 @@ To return all server stickers's id ## Usage -```bash +```php $serverStickers[Separator] Example: $serverStickers[, ] diff --git a/content/docs/(functions)/Stickers/sticker.mdx b/content/docs/(functions)/Stickers/sticker.mdx index b0d4d737..33084c21 100644 --- a/content/docs/(functions)/Stickers/sticker.mdx +++ b/content/docs/(functions)/Stickers/sticker.mdx @@ -7,7 +7,7 @@ To return an information about a sticker using ID\ ## Usage -```bash +```php $sticker[Sticker ID;name;Info] ``` diff --git a/content/docs/(functions)/Text/Array/arrayClear.mdx b/content/docs/(functions)/Text/Array/arrayClear.mdx index 52506d1a..6c00ff32 100644 --- a/content/docs/(functions)/Text/Array/arrayClear.mdx +++ b/content/docs/(functions)/Text/Array/arrayClear.mdx @@ -6,7 +6,7 @@ Deletes an array. ## Usage -```bash +```php $arrayClear[array name (optional)] ``` diff --git a/content/docs/(functions)/Text/Array/arrayConcat.mdx b/content/docs/(functions)/Text/Array/arrayConcat.mdx index da1a8751..a8bfebe6 100644 --- a/content/docs/(functions)/Text/Array/arrayConcat.mdx +++ b/content/docs/(functions)/Text/Array/arrayConcat.mdx @@ -6,7 +6,7 @@ Merge new array with the current array ## Usage -```bash +```php $arrayConcat[List;separator;array name (optional)] ``` diff --git a/content/docs/(functions)/Text/Array/arrayCount.mdx b/content/docs/(functions)/Text/Array/arrayCount.mdx index 1318478e..071ed9f1 100644 --- a/content/docs/(functions)/Text/Array/arrayCount.mdx +++ b/content/docs/(functions)/Text/Array/arrayCount.mdx @@ -6,7 +6,7 @@ An alias for `$arrayLength`. ## Usage -```bash +```php $arrayCount[array name (optional)] ``` diff --git a/content/docs/(functions)/Text/Array/arrayCreate.mdx b/content/docs/(functions)/Text/Array/arrayCreate.mdx index c8ec2886..750c6ed9 100644 --- a/content/docs/(functions)/Text/Array/arrayCreate.mdx +++ b/content/docs/(functions)/Text/Array/arrayCreate.mdx @@ -6,7 +6,7 @@ Creates an array from a list. ## Usage -```bash +```php $arrayCreate[List;separator;array name (optional)] ``` diff --git a/content/docs/(functions)/Text/Array/arrayElementCount.mdx b/content/docs/(functions)/Text/Array/arrayElementCount.mdx index eca0daee..b19bf300 100644 --- a/content/docs/(functions)/Text/Array/arrayElementCount.mdx +++ b/content/docs/(functions)/Text/Array/arrayElementCount.mdx @@ -7,7 +7,7 @@ This function is used to count the number of times a specific element appears in ## Usage -```bash +```php $arrayElementCount[Element To Count;Trim before compare (yes/no);array name] ``` diff --git a/content/docs/(functions)/Text/Array/arrayFilter.mdx b/content/docs/(functions)/Text/Array/arrayFilter.mdx index 7f6c48cb..915f4f4f 100644 --- a/content/docs/(functions)/Text/Array/arrayFilter.mdx +++ b/content/docs/(functions)/Text/Array/arrayFilter.mdx @@ -13,7 +13,7 @@ If you are looking to loop over non-zero cooldown functions, you should use `$fo ## Usage -```bash +```php $arrayFilter[Element Value;Element Index;array name]{ CODE... } diff --git a/content/docs/(functions)/Text/Array/arrayGet.mdx b/content/docs/(functions)/Text/Array/arrayGet.mdx index 2e99e3c6..6d63a4b3 100644 --- a/content/docs/(functions)/Text/Array/arrayGet.mdx +++ b/content/docs/(functions)/Text/Array/arrayGet.mdx @@ -6,7 +6,7 @@ Returns the value of an element at the specified index in an array. ## Usage -```bash +```php $arrayGet[index;array name (optional)] ``` diff --git a/content/docs/(functions)/Text/Array/arrayInclude.mdx b/content/docs/(functions)/Text/Array/arrayInclude.mdx index de258ecd..754acb93 100644 --- a/content/docs/(functions)/Text/Array/arrayInclude.mdx +++ b/content/docs/(functions)/Text/Array/arrayInclude.mdx @@ -6,7 +6,7 @@ To check if a value exists in the array. Returns `true` if the value exists, oth ## Usage -```bash +```php $arrayInclude[Value;array name (optional)] ``` diff --git a/content/docs/(functions)/Text/Array/arrayJoin.mdx b/content/docs/(functions)/Text/Array/arrayJoin.mdx index 18598312..1708f07f 100644 --- a/content/docs/(functions)/Text/Array/arrayJoin.mdx +++ b/content/docs/(functions)/Text/Array/arrayJoin.mdx @@ -6,7 +6,7 @@ Joins an array created using `$textSplit` with a specific separator. ## Usage -```bash +```php $arrayJoin[Separator (optional);array name (optional)] ``` diff --git a/content/docs/(functions)/Text/Array/arrayLength.mdx b/content/docs/(functions)/Text/Array/arrayLength.mdx index ddb9ebf8..3718f537 100644 --- a/content/docs/(functions)/Text/Array/arrayLength.mdx +++ b/content/docs/(functions)/Text/Array/arrayLength.mdx @@ -6,7 +6,7 @@ Returns the number of elements in an array. ## Usage -```bash +```php $arrayLength[array name (optional)] ``` diff --git a/content/docs/(functions)/Text/Array/arrayLoop.mdx b/content/docs/(functions)/Text/Array/arrayLoop.mdx index 09392f79..60f17993 100644 --- a/content/docs/(functions)/Text/Array/arrayLoop.mdx +++ b/content/docs/(functions)/Text/Array/arrayLoop.mdx @@ -13,7 +13,7 @@ If you are looking to loop over non-zero cooldown functions, you should use `$fo ## Usage -```bash +```php $arrayLoop[varName;index;array name (optional)]{ CODE... } diff --git a/content/docs/(functions)/Text/Array/arrayMap.mdx b/content/docs/(functions)/Text/Array/arrayMap.mdx index 8549d355..161d4d21 100644 --- a/content/docs/(functions)/Text/Array/arrayMap.mdx +++ b/content/docs/(functions)/Text/Array/arrayMap.mdx @@ -13,7 +13,7 @@ If you are looking to loop over non-zero cooldown functions, you should use `$fo ## Usage -```bash +```php $arrayMap[Element Value;Element Index;array name (optional)]{ CODE } diff --git a/content/docs/(functions)/Text/Array/arrayPop.mdx b/content/docs/(functions)/Text/Array/arrayPop.mdx index 53c54746..ce5f265f 100644 --- a/content/docs/(functions)/Text/Array/arrayPop.mdx +++ b/content/docs/(functions)/Text/Array/arrayPop.mdx @@ -6,7 +6,7 @@ Removes, and returns the last element in an array. ## Usage -```bash +```php $arrayPop[array name (optional)] ``` diff --git a/content/docs/(functions)/Text/Array/arrayPush.mdx b/content/docs/(functions)/Text/Array/arrayPush.mdx index af4024e5..cfe2e80b 100644 --- a/content/docs/(functions)/Text/Array/arrayPush.mdx +++ b/content/docs/(functions)/Text/Array/arrayPush.mdx @@ -6,7 +6,7 @@ Adds an element to the end of an array. ## Usage -```bash +```php $arrayPush[Value;array name (optional)] ``` diff --git a/content/docs/(functions)/Text/Array/arrayRemove.mdx b/content/docs/(functions)/Text/Array/arrayRemove.mdx index 01eb49ca..74bd7a54 100644 --- a/content/docs/(functions)/Text/Array/arrayRemove.mdx +++ b/content/docs/(functions)/Text/Array/arrayRemove.mdx @@ -6,7 +6,7 @@ Removes something from an array, using the index, and returns nothing. ## Usage -```bash +```php $arrayRemove[Index;Index... (optional);array name (optional)] ``` diff --git a/content/docs/(functions)/Text/Array/arrayReverse.mdx b/content/docs/(functions)/Text/Array/arrayReverse.mdx index ec4ae267..3c6d256d 100644 --- a/content/docs/(functions)/Text/Array/arrayReverse.mdx +++ b/content/docs/(functions)/Text/Array/arrayReverse.mdx @@ -6,7 +6,7 @@ Reverses an array. ## Usage -```bash +```php $arrayReverse[array name (optional)] ``` diff --git a/content/docs/(functions)/Text/Array/arraySearch.mdx b/content/docs/(functions)/Text/Array/arraySearch.mdx index 66865d2d..dbc8617a 100644 --- a/content/docs/(functions)/Text/Array/arraySearch.mdx +++ b/content/docs/(functions)/Text/Array/arraySearch.mdx @@ -6,7 +6,7 @@ To search for a value in an array. If it exists, it will return the position of ## Usage -```bash +```php $arraySearch[Value to search;array name (optional)] ``` diff --git a/content/docs/(functions)/Text/Array/arraySet.mdx b/content/docs/(functions)/Text/Array/arraySet.mdx index 2e5658f1..da6621f1 100644 --- a/content/docs/(functions)/Text/Array/arraySet.mdx +++ b/content/docs/(functions)/Text/Array/arraySet.mdx @@ -6,7 +6,7 @@ Sets the value of an index in an array. ## Usage -```bash +```php $arraySet[index;value;array name (optional)] ``` diff --git a/content/docs/(functions)/Text/Array/arrayShift.mdx b/content/docs/(functions)/Text/Array/arrayShift.mdx index 805541da..d3bd9eb9 100644 --- a/content/docs/(functions)/Text/Array/arrayShift.mdx +++ b/content/docs/(functions)/Text/Array/arrayShift.mdx @@ -6,7 +6,7 @@ Removes and returns the first element in an array. ## Usage -```bash +```php $arrayShift[array name (optional)] ``` diff --git a/content/docs/(functions)/Text/Array/arrayShuffle.mdx b/content/docs/(functions)/Text/Array/arrayShuffle.mdx index 905a0f74..a84f15ff 100644 --- a/content/docs/(functions)/Text/Array/arrayShuffle.mdx +++ b/content/docs/(functions)/Text/Array/arrayShuffle.mdx @@ -6,7 +6,7 @@ To shuffle an existing array. ## Usage -```bash +```php $arrayShuffle[array name (optional)] ``` diff --git a/content/docs/(functions)/Text/Array/arraySlice.mdx b/content/docs/(functions)/Text/Array/arraySlice.mdx index 7e851e02..09d57c53 100644 --- a/content/docs/(functions)/Text/Array/arraySlice.mdx +++ b/content/docs/(functions)/Text/Array/arraySlice.mdx @@ -6,7 +6,7 @@ To keep only a part of the array, *slicing* it. ## Usage -```bash +```php $arraySlice[from;to;array name (optional)] ``` diff --git a/content/docs/(functions)/Text/Array/arraySort.mdx b/content/docs/(functions)/Text/Array/arraySort.mdx index cca1846f..e0260c31 100644 --- a/content/docs/(functions)/Text/Array/arraySort.mdx +++ b/content/docs/(functions)/Text/Array/arraySort.mdx @@ -7,7 +7,7 @@ Can be sorted numerically or alphabetically, or depending on occurrences. ## Usage -```bash +```php $arraySort[Ascending (yes/no, default is no);Sort Type;array name (optional)] ``` diff --git a/content/docs/(functions)/Text/Array/arrayUnique.mdx b/content/docs/(functions)/Text/Array/arrayUnique.mdx index 9af194a9..3791d88e 100644 --- a/content/docs/(functions)/Text/Array/arrayUnique.mdx +++ b/content/docs/(functions)/Text/Array/arrayUnique.mdx @@ -6,7 +6,7 @@ Return the unique elements in the array, glued with the separator. ## Usage -```bash +```php $arrayUnique[Separator (default ', ');Trim Element before check? (default is yes);array name (optional)] ``` diff --git a/content/docs/(functions)/Text/Array/arrayUnshift.mdx b/content/docs/(functions)/Text/Array/arrayUnshift.mdx index 421cbe0d..162eab4f 100644 --- a/content/docs/(functions)/Text/Array/arrayUnshift.mdx +++ b/content/docs/(functions)/Text/Array/arrayUnshift.mdx @@ -6,7 +6,7 @@ Adds an element to the start of the array. ## Usage -```bash +```php $arrayUnshift[value;array name (optional)] ``` diff --git a/content/docs/(functions)/Text/Components/addMenu.mdx b/content/docs/(functions)/Text/Components/addMenu.mdx index f99e2cbe..b3f0f13e 100644 --- a/content/docs/(functions)/Text/Components/addMenu.mdx +++ b/content/docs/(functions)/Text/Components/addMenu.mdx @@ -5,7 +5,7 @@ title: "$addMenu" Add a menu to existing message ## Usage -```bash +```php $addMenu[ {channel=channel id} {message=message id} @@ -26,7 +26,7 @@ $addMenu[ ``` ### Example: -```bash +```php $addMenu[ {chid=$channelID} {mid=1151607052007907449} diff --git a/content/docs/(functions)/Text/Components/awaitMenu.mdx b/content/docs/(functions)/Text/Components/awaitMenu.mdx index fc66208e..1f73129b 100644 --- a/content/docs/(functions)/Text/Components/awaitMenu.mdx +++ b/content/docs/(functions)/Text/Components/awaitMenu.mdx @@ -8,7 +8,7 @@ If multiple values are selected, all of them will be returned, separated with `, ## Usage -```bash +```php $awaitMenu[Message (optional);user id (optional, default:author);timeout (optional, default:15s);menu id1 (optional);menu id2...] ``` ### Timeout diff --git a/content/docs/(functions)/Text/Components/buttonEmoji.mdx b/content/docs/(functions)/Text/Components/buttonEmoji.mdx index 8778a9a8..02da6e05 100644 --- a/content/docs/(functions)/Text/Components/buttonEmoji.mdx +++ b/content/docs/(functions)/Text/Components/buttonEmoji.mdx @@ -6,7 +6,7 @@ Return the clicked button's emoji in the [Button trigger](/Trigger/button.html). ## Usage -```bash +```php $buttonEmoji ``` diff --git a/content/docs/(functions)/Text/Components/buttonID.mdx b/content/docs/(functions)/Text/Components/buttonID.mdx index e17bbb39..0595aedd 100644 --- a/content/docs/(functions)/Text/Components/buttonID.mdx +++ b/content/docs/(functions)/Text/Components/buttonID.mdx @@ -6,7 +6,7 @@ Returns the Button ID that triggered the command. Returns `undefined` if the tri ## Usage -```bash +```php $buttonID ``` diff --git a/content/docs/(functions)/Text/Components/buttonIsDisabled.mdx b/content/docs/(functions)/Text/Components/buttonIsDisabled.mdx index 7960da50..4c7d6b41 100644 --- a/content/docs/(functions)/Text/Components/buttonIsDisabled.mdx +++ b/content/docs/(functions)/Text/Components/buttonIsDisabled.mdx @@ -7,7 +7,7 @@ Returns true if the button is disabled, otherwise returns `false`. ## Usage -```bash +```php $buttonIsDisabled ``` diff --git a/content/docs/(functions)/Text/Components/buttonLabel.mdx b/content/docs/(functions)/Text/Components/buttonLabel.mdx index f699db3f..2a69f137 100644 --- a/content/docs/(functions)/Text/Components/buttonLabel.mdx +++ b/content/docs/(functions)/Text/Components/buttonLabel.mdx @@ -6,7 +6,7 @@ Return the clicked button's label in the Button trigger. If the button doesn't h ## Usage -```bash +```php $buttonLabel ``` diff --git a/content/docs/(functions)/Text/Components/buttonStyle.mdx b/content/docs/(functions)/Text/Components/buttonStyle.mdx index 8aad90a7..46a737b6 100644 --- a/content/docs/(functions)/Text/Components/buttonStyle.mdx +++ b/content/docs/(functions)/Text/Components/buttonStyle.mdx @@ -6,7 +6,7 @@ Return the clicked button's style, e.g. `blurple`/`red`/`url` in the Button trig ## Usage -```bash +```php $buttonStyle ``` diff --git a/content/docs/(functions)/Text/Components/buttonURL.mdx b/content/docs/(functions)/Text/Components/buttonURL.mdx index 7973e1c7..469ecf72 100644 --- a/content/docs/(functions)/Text/Components/buttonURL.mdx +++ b/content/docs/(functions)/Text/Components/buttonURL.mdx @@ -6,7 +6,7 @@ Return the clicked button's URL in Button trigger if it exists. Else, returns `u ## Usage -```bash +```php $buttonURL ``` diff --git a/content/docs/(functions)/Text/Components/disableButtons.mdx b/content/docs/(functions)/Text/Components/disableButtons.mdx index cbbca713..7d9a5ad9 100644 --- a/content/docs/(functions)/Text/Components/disableButtons.mdx +++ b/content/docs/(functions)/Text/Components/disableButtons.mdx @@ -6,7 +6,7 @@ Disable buttons in a message, not providing a Button ID will disable every butto ## Usage -```bash +```php $disableButtons[Message ID;Button ID 1;Button ID 2;....] ``` diff --git a/content/docs/(functions)/Text/Components/disableMenu.mdx b/content/docs/(functions)/Text/Components/disableMenu.mdx index 9350132a..8816c8a7 100644 --- a/content/docs/(functions)/Text/Components/disableMenu.mdx +++ b/content/docs/(functions)/Text/Components/disableMenu.mdx @@ -6,7 +6,7 @@ Disable menus in the given message, not providing a Menu ID will disable every m ## Usage -```bash +```php $disableMenu[message id;Menu ID 1;Menu ID 2;Menu ID 3;....] ``` diff --git a/content/docs/(functions)/Text/Components/editMenu.mdx b/content/docs/(functions)/Text/Components/editMenu.mdx index ac10f85f..8a378b9e 100644 --- a/content/docs/(functions)/Text/Components/editMenu.mdx +++ b/content/docs/(functions)/Text/Components/editMenu.mdx @@ -7,11 +7,11 @@ Edits a menu in given message.\ ## Usage -```bash +```php $editMenu[message id;menu id;type;new value] ``` ### Example: -```bash +```php $editMenu[$messageID;menu_id;placeholder;A new placeholder] ``` \ No newline at end of file diff --git a/content/docs/(functions)/Text/Components/enableButtons.mdx b/content/docs/(functions)/Text/Components/enableButtons.mdx index debf1a83..798a18a6 100644 --- a/content/docs/(functions)/Text/Components/enableButtons.mdx +++ b/content/docs/(functions)/Text/Components/enableButtons.mdx @@ -6,7 +6,7 @@ Enable buttons in a message, not providing a Button ID will enable every button ## Usage -```bash +```php $enableButtons[Message ID;Button ID 1;Button ID 2;....] ``` diff --git a/content/docs/(functions)/Text/Components/enableMenu.mdx b/content/docs/(functions)/Text/Components/enableMenu.mdx index 2e71bbcf..3c4fc148 100644 --- a/content/docs/(functions)/Text/Components/enableMenu.mdx +++ b/content/docs/(functions)/Text/Components/enableMenu.mdx @@ -6,7 +6,7 @@ Enables menus in a given message, not providing a Menu ID will enable every menu ## Usage -```bash +```php $enableMenu[message id;Menu ID 1;Menu ID 2;Menu ID 3;....] ``` diff --git a/content/docs/(functions)/Text/Components/eventSelected.mdx b/content/docs/(functions)/Text/Components/eventSelected.mdx index e65d9e0a..8fad25d6 100644 --- a/content/docs/(functions)/Text/Components/eventSelected.mdx +++ b/content/docs/(functions)/Text/Components/eventSelected.mdx @@ -6,7 +6,7 @@ Returns values that were selected by the user using `$selectMenu`. ## Usage -```bash +```php $eventSelected or $eventSelected[position;seperator] ``` diff --git a/content/docs/(functions)/Text/Components/eventTargetID.mdx b/content/docs/(functions)/Text/Components/eventTargetID.mdx index 8ddb03db..f77f40f9 100644 --- a/content/docs/(functions)/Text/Components/eventTargetID.mdx +++ b/content/docs/(functions)/Text/Components/eventTargetID.mdx @@ -6,7 +6,7 @@ Returns the ID of the target selected by the user when using a **context menu co ## Usage -```bash +```php $eventTargetID ``` diff --git a/content/docs/(functions)/Text/Components/menuId.mdx b/content/docs/(functions)/Text/Components/menuId.mdx index 86aabb5f..c46877c7 100644 --- a/content/docs/(functions)/Text/Components/menuId.mdx +++ b/content/docs/(functions)/Text/Components/menuId.mdx @@ -6,7 +6,7 @@ Return the Menu ID of the menu triggered with the [Select Menu Trigger](/Trigger ## Usage -```bash +```php $menuID ``` diff --git a/content/docs/(functions)/Text/Components/removeEmbed.mdx b/content/docs/(functions)/Text/Components/removeEmbed.mdx index ab6862c8..9ed8ebb1 100644 --- a/content/docs/(functions)/Text/Components/removeEmbed.mdx +++ b/content/docs/(functions)/Text/Components/removeEmbed.mdx @@ -6,7 +6,7 @@ remove an embed or all embeds from a message ## Usage -```bash +```php $removeEmbed[Channel ID (default is $channelID);Message ID (default is $messageID);Embed Number (default is 1)] ``` @@ -14,6 +14,6 @@ $removeEmbed[Channel ID (default is $channelID);Message ID (default is $messageI You can remove all embeds by setting embed number to `all` ### Example: -```bash +```php $removeEmbed[$channelID;$messageID;1] ``` \ No newline at end of file diff --git a/content/docs/(functions)/Text/Components/removeMenu.mdx b/content/docs/(functions)/Text/Components/removeMenu.mdx index 5e843823..dca1a113 100644 --- a/content/docs/(functions)/Text/Components/removeMenu.mdx +++ b/content/docs/(functions)/Text/Components/removeMenu.mdx @@ -6,7 +6,7 @@ Removes menus in a given message, not providing a Menu ID will remove every menu ## Usage -```bash +```php $removeMenu[message id;Menu ID 1;Menu ID 2;Menu ID 3;....] ``` diff --git a/content/docs/(functions)/Text/Condition/checkCondition.mdx b/content/docs/(functions)/Text/Condition/checkCondition.mdx index 7e9d2f32..a5f15d3c 100644 --- a/content/docs/(functions)/Text/Condition/checkCondition.mdx +++ b/content/docs/(functions)/Text/Condition/checkCondition.mdx @@ -6,7 +6,7 @@ Checks if given expression is true or false. ## Usage -```bash +```php $checkCondition[Expression] ``` diff --git a/content/docs/(functions)/Text/Condition/conditional.mdx b/content/docs/(functions)/Text/Condition/conditional.mdx index 2b18128e..00ebe389 100644 --- a/content/docs/(functions)/Text/Condition/conditional.mdx +++ b/content/docs/(functions)/Text/Condition/conditional.mdx @@ -6,7 +6,7 @@ return A if condition is true, B if condition is false ## Usage -```bash +```php $conditional[condition;A;B] ``` diff --git a/content/docs/(functions)/Text/Condition/else.mdx b/content/docs/(functions)/Text/Condition/else.mdx index 83b6a0af..ebcdd00b 100644 --- a/content/docs/(functions)/Text/Condition/else.mdx +++ b/content/docs/(functions)/Text/Condition/else.mdx @@ -6,7 +6,7 @@ is used in case $if and $elseIf is not true ## Usage -```bash +```php $if[1==2] CODE BLOCk $elseIf[3==4] diff --git a/content/docs/(functions)/Text/Condition/elseif.mdx b/content/docs/(functions)/Text/Condition/elseif.mdx index ecf6a43a..10e17dd0 100644 --- a/content/docs/(functions)/Text/Condition/elseif.mdx +++ b/content/docs/(functions)/Text/Condition/elseif.mdx @@ -6,7 +6,7 @@ will be checked if $if was false, should be ended with $endelseif ## Usage -```bash +```php $elseIf[EXPRESSION] CODE BLOCK $endelseif diff --git a/content/docs/(functions)/Text/Condition/endIf.mdx b/content/docs/(functions)/Text/Condition/endIf.mdx index f355f64d..a4d0c92a 100644 --- a/content/docs/(functions)/Text/Condition/endIf.mdx +++ b/content/docs/(functions)/Text/Condition/endIf.mdx @@ -6,7 +6,7 @@ is used to end the whole $if block ## Usage -```bash +```php $if[EXPRESSION] CODE BLOCK $endIf diff --git a/content/docs/(functions)/Text/Condition/endelseif.mdx b/content/docs/(functions)/Text/Condition/endelseif.mdx index 366b1987..f94a9a17 100644 --- a/content/docs/(functions)/Text/Condition/endelseif.mdx +++ b/content/docs/(functions)/Text/Condition/endelseif.mdx @@ -6,7 +6,7 @@ is used to close $elseIf ## Usage -```bash +```php $elseIf[EXPR] CODE BLOCK $endelseif diff --git a/content/docs/(functions)/Text/Condition/if.mdx b/content/docs/(functions)/Text/Condition/if.mdx index d4e47906..6c7c2f7d 100644 --- a/content/docs/(functions)/Text/Condition/if.mdx +++ b/content/docs/(functions)/Text/Condition/if.mdx @@ -5,7 +5,7 @@ title: "$if" Checks An expression and executes code Only if that expression is true ## Shortest Syntax -```bash +```php $if[EXPRESSION] CODE $endIf diff --git a/content/docs/(functions)/Text/Embed/attachment.mdx b/content/docs/(functions)/Text/Embed/attachment.mdx index f7d40244..8bd86ac9 100644 --- a/content/docs/(functions)/Text/Embed/attachment.mdx +++ b/content/docs/(functions)/Text/Embed/attachment.mdx @@ -8,7 +8,7 @@ If the name field is given, you must specify the extension for the attachment (p ## Usage -```bash +```php $attachment[data;name (optional);type (url or buffer) (optional);spoiler (yes/no, default is no) (optional)] ``` diff --git a/content/docs/(functions)/Text/Math/abs.mdx b/content/docs/(functions)/Text/Math/abs.mdx index 29ccf001..9aea35bd 100644 --- a/content/docs/(functions)/Text/Math/abs.mdx +++ b/content/docs/(functions)/Text/Math/abs.mdx @@ -6,7 +6,7 @@ Return the absolute value of a number. Basically forces a number to be positive ## Usage -```bash +```php $abs[Number] ``` diff --git a/content/docs/(functions)/Text/Math/ceil.mdx b/content/docs/(functions)/Text/Math/ceil.mdx index 36780656..30e5fcb8 100644 --- a/content/docs/(functions)/Text/Math/ceil.mdx +++ b/content/docs/(functions)/Text/Math/ceil.mdx @@ -6,7 +6,7 @@ rounds a number up to the next largest integer ## Usage -```bash +```php $ceil[Number] ``` diff --git a/content/docs/(functions)/Text/Math/floor.mdx b/content/docs/(functions)/Text/Math/floor.mdx index 6e000e78..15b423fd 100644 --- a/content/docs/(functions)/Text/Math/floor.mdx +++ b/content/docs/(functions)/Text/Math/floor.mdx @@ -6,7 +6,7 @@ return the largest integer less than or equal to a given number ## Usage -```bash +```php $floor[Number] ``` diff --git a/content/docs/(functions)/Text/Math/mathMax.mdx b/content/docs/(functions)/Text/Math/mathMax.mdx index ecae7b1e..12cc51bf 100644 --- a/content/docs/(functions)/Text/Math/mathMax.mdx +++ b/content/docs/(functions)/Text/Math/mathMax.mdx @@ -6,7 +6,7 @@ Return the largest number from a list of numbers ## Usage -```bash +```php $MathMax[Number 1;Number 2;Number 3;...] ``` diff --git a/content/docs/(functions)/Text/Math/mathMin.mdx b/content/docs/(functions)/Text/Math/mathMin.mdx index 25b37ae6..30d52da2 100644 --- a/content/docs/(functions)/Text/Math/mathMin.mdx +++ b/content/docs/(functions)/Text/Math/mathMin.mdx @@ -6,7 +6,7 @@ Return the smallest number from a list of numbers ## Usage -```bash +```php $mathMin[Number 1;Number 2;Number 3;...] ``` diff --git a/content/docs/(functions)/Text/Object/ObjectIncrease.mdx b/content/docs/(functions)/Text/Object/ObjectIncrease.mdx index aa50d485..f4de11e6 100644 --- a/content/docs/(functions)/Text/Object/ObjectIncrease.mdx +++ b/content/docs/(functions)/Text/Object/ObjectIncrease.mdx @@ -6,7 +6,7 @@ To increase a key value, if the key doesn't exist, it will create one and set to ## Usage -```bash +```php $ObjectIncrease[Key;Amount] ``` diff --git a/content/docs/(functions)/Text/Object/ObjectKeyExists.mdx b/content/docs/(functions)/Text/Object/ObjectKeyExists.mdx index 8d3f3284..54fde0e6 100644 --- a/content/docs/(functions)/Text/Object/ObjectKeyExists.mdx +++ b/content/docs/(functions)/Text/Object/ObjectKeyExists.mdx @@ -6,7 +6,7 @@ Checks if given key is present in the object. Returns `true` or `false`. ## Usage -```bash +```php $ObjectKeyExists[Key;...] ``` 1. **Key(s)** - Key to check it's existence. You can put as many nested keys as needed. diff --git a/content/docs/(functions)/Text/Object/ObjectKeys.mdx b/content/docs/(functions)/Text/Object/ObjectKeys.mdx index 14dbe9ec..02970a51 100644 --- a/content/docs/(functions)/Text/Object/ObjectKeys.mdx +++ b/content/docs/(functions)/Text/Object/ObjectKeys.mdx @@ -6,7 +6,7 @@ Return the Object Keys with the seperator between each key ## Usage -```bash +```php $ObjectKeys[Seperator (optional, default:, );Nested Property 1;Nested Property 2;...] ``` diff --git a/content/docs/(functions)/Text/Object/ObjectLoop.mdx b/content/docs/(functions)/Text/Object/ObjectLoop.mdx index 760b33de..b9191386 100644 --- a/content/docs/(functions)/Text/Object/ObjectLoop.mdx +++ b/content/docs/(functions)/Text/Object/ObjectLoop.mdx @@ -13,7 +13,7 @@ If you are looking to loop over non-zero cooldown functions, you should use `$fo ## Usage -```bash +```php $ObjectLoop[key name;value name;index name;Nested Prroperty 1;Nested Property 2;...]{ CODE... } diff --git a/content/docs/(functions)/Text/Object/ObjectMerge.mdx b/content/docs/(functions)/Text/Object/ObjectMerge.mdx index 202ad911..28f7eb7e 100644 --- a/content/docs/(functions)/Text/Object/ObjectMerge.mdx +++ b/content/docs/(functions)/Text/Object/ObjectMerge.mdx @@ -6,7 +6,7 @@ Merge the current object with another object, it overwrites the conflicted keys ## Usage -```bash +```php $ObjectMerge[object] ``` diff --git a/content/docs/(functions)/Text/Object/ObjectRemove.mdx b/content/docs/(functions)/Text/Object/ObjectRemove.mdx index 1faea756..44c0eef5 100644 --- a/content/docs/(functions)/Text/Object/ObjectRemove.mdx +++ b/content/docs/(functions)/Text/Object/ObjectRemove.mdx @@ -6,7 +6,7 @@ To remove a key from the object ## Usage -```bash +```php $ObjectRemove[Key;Key...(Optional)] ``` diff --git a/content/docs/(functions)/Text/Object/ObjectRenameKey.mdx b/content/docs/(functions)/Text/Object/ObjectRenameKey.mdx index 1b580c89..bd9035eb 100644 --- a/content/docs/(functions)/Text/Object/ObjectRenameKey.mdx +++ b/content/docs/(functions)/Text/Object/ObjectRenameKey.mdx @@ -6,7 +6,7 @@ allows you to rename a key in your object ## Usage -```bash +```php $objectRenameKey[old key;new key name] ``` diff --git a/content/docs/(functions)/Text/Object/ObjectValues.mdx b/content/docs/(functions)/Text/Object/ObjectValues.mdx index 4bae8fd4..336b9c89 100644 --- a/content/docs/(functions)/Text/Object/ObjectValues.mdx +++ b/content/docs/(functions)/Text/Object/ObjectValues.mdx @@ -6,7 +6,7 @@ Return the Object values with seperator between each value ## Usage -```bash +```php $ObjectValues[Seperator (optional, default:, );Nested Propery 1;Nested Property 2] ``` diff --git a/content/docs/(functions)/Text/Object/addObjectProperty.mdx b/content/docs/(functions)/Text/Object/addObjectProperty.mdx index 86fd5e00..6c79bad0 100644 --- a/content/docs/(functions)/Text/Object/addObjectProperty.mdx +++ b/content/docs/(functions)/Text/Object/addObjectProperty.mdx @@ -6,7 +6,7 @@ Adds a key with a value to the existing object. ## Usage -```bash +```php $addObjectProperty[key;value] ``` diff --git a/content/docs/(functions)/Text/Object/createObject.mdx b/content/docs/(functions)/Text/Object/createObject.mdx index b1735405..9e81e0cf 100644 --- a/content/docs/(functions)/Text/Object/createObject.mdx +++ b/content/docs/(functions)/Text/Object/createObject.mdx @@ -6,7 +6,7 @@ Creates an object that can be used later. ## Usage -```bash +```php $createObject[object string] ``` diff --git a/content/docs/(functions)/Text/Object/getObjectKeys.mdx b/content/docs/(functions)/Text/Object/getObjectKeys.mdx index 2a11140b..10ce504d 100644 --- a/content/docs/(functions)/Text/Object/getObjectKeys.mdx +++ b/content/docs/(functions)/Text/Object/getObjectKeys.mdx @@ -6,7 +6,7 @@ Return the object keys with seperator (default is space if not provided) ## Usage -```bash +```php $getObjectKeys or $getObjectKeys[Seperator (optional)] ``` diff --git a/content/docs/(functions)/Text/Object/getObjectProperty.mdx b/content/docs/(functions)/Text/Object/getObjectProperty.mdx index 29922750..8c5ad7f9 100644 --- a/content/docs/(functions)/Text/Object/getObjectProperty.mdx +++ b/content/docs/(functions)/Text/Object/getObjectProperty.mdx @@ -6,7 +6,7 @@ Gets a property value from given key. ## Usage -```bash +```php $getObjectProperty[key] ``` diff --git a/content/docs/(functions)/Text/Regex/regexCheck.mdx b/content/docs/(functions)/Text/Regex/regexCheck.mdx index 201dc703..5e0050d4 100644 --- a/content/docs/(functions)/Text/Regex/regexCheck.mdx +++ b/content/docs/(functions)/Text/Regex/regexCheck.mdx @@ -6,7 +6,7 @@ To check if a text matches a regex or not, returns true or false ## Usage -```bash +```php $regexCheck[Text;Regex;Flags] ``` diff --git a/content/docs/(functions)/Text/Regex/regexReplace.mdx b/content/docs/(functions)/Text/Regex/regexReplace.mdx index 7b2e4e08..5e00cf6d 100644 --- a/content/docs/(functions)/Text/Regex/regexReplace.mdx +++ b/content/docs/(functions)/Text/Regex/regexReplace.mdx @@ -6,7 +6,7 @@ Uses a regular expression to replace matching queries ## Usage -```bash +```php $regexReplace[text;regex;flags;new text] ``` diff --git a/content/docs/(functions)/Text/buffer.mdx b/content/docs/(functions)/Text/buffer.mdx index e25c2a3f..027ea5b7 100644 --- a/content/docs/(functions)/Text/buffer.mdx +++ b/content/docs/(functions)/Text/buffer.mdx @@ -6,12 +6,12 @@ It return the input (useful for some rare cases) ## Usage -```bash +```php $buffer[input] ``` ### Example: -```bash +```php $sendMessage[{footer:$buffer[Some :Breaking :Message]} ``` diff --git a/content/docs/(functions)/Text/checkContains.mdx b/content/docs/(functions)/Text/checkContains.mdx index d46f0423..1b021890 100644 --- a/content/docs/(functions)/Text/checkContains.mdx +++ b/content/docs/(functions)/Text/checkContains.mdx @@ -6,7 +6,7 @@ checks if given message contains any of the texts ## Usage -```bash +```php $checkContains[message;text1;text2;...] ``` diff --git a/content/docs/(functions)/Text/customEmoji.mdx b/content/docs/(functions)/Text/customEmoji.mdx index d6e28b1c..63e4b96c 100644 --- a/content/docs/(functions)/Text/customEmoji.mdx +++ b/content/docs/(functions)/Text/customEmoji.mdx @@ -6,7 +6,7 @@ Returns a custom emoji ## Usage -```bash +```php $customEmoji[name or id] ``` diff --git a/content/docs/(functions)/Text/filterMessage.mdx b/content/docs/(functions)/Text/filterMessage.mdx index 3d39414e..bce47342 100644 --- a/content/docs/(functions)/Text/filterMessage.mdx +++ b/content/docs/(functions)/Text/filterMessage.mdx @@ -6,7 +6,7 @@ Removes letters or numbers from given text ## Usage -```bash +```php $filterMessage[message;letterOrSymbols] ``` diff --git a/content/docs/(functions)/Text/filterMessageWords.mdx b/content/docs/(functions)/Text/filterMessageWords.mdx index 308878d0..9cfec3dd 100644 --- a/content/docs/(functions)/Text/filterMessageWords.mdx +++ b/content/docs/(functions)/Text/filterMessageWords.mdx @@ -6,7 +6,7 @@ Removed words from the message. ## Usage -```bash +```php $filterMessageWords[text;caseSensitive (yes/no);...words] ``` diff --git a/content/docs/(functions)/Text/findChars.mdx b/content/docs/(functions)/Text/findChars.mdx index 4d4ff303..97ff2ad0 100644 --- a/content/docs/(functions)/Text/findChars.mdx +++ b/content/docs/(functions)/Text/findChars.mdx @@ -6,7 +6,7 @@ Takes all the letters from given string and returns them alone. ## Usage -```bash +```php $findChars[string] ``` diff --git a/content/docs/(functions)/Text/findNumbers.mdx b/content/docs/(functions)/Text/findNumbers.mdx index a7b68b66..65ca6a82 100644 --- a/content/docs/(functions)/Text/findNumbers.mdx +++ b/content/docs/(functions)/Text/findNumbers.mdx @@ -6,7 +6,7 @@ Find numbers from inside a text. ## Usage -```bash +```php $findNumbers[text;separator] ``` diff --git a/content/docs/(functions)/Text/findSpecialChars.mdx b/content/docs/(functions)/Text/findSpecialChars.mdx index 1ffe744c..da6b1f38 100644 --- a/content/docs/(functions)/Text/findSpecialChars.mdx +++ b/content/docs/(functions)/Text/findSpecialChars.mdx @@ -6,7 +6,7 @@ Takes all the non number/letter from given string and returns the alone ## Usage -```bash +```php $findSpecialChars[string] ``` diff --git a/content/docs/(functions)/Text/indexOf.mdx b/content/docs/(functions)/Text/indexOf.mdx index cb4c9649..298c1b6a 100644 --- a/content/docs/(functions)/Text/indexOf.mdx +++ b/content/docs/(functions)/Text/indexOf.mdx @@ -7,7 +7,7 @@ Returns the position of \ in \.\ ## Usage -```bash +```php $indexOf[text;char] ``` diff --git a/content/docs/(functions)/Text/isChannelMention.mdx b/content/docs/(functions)/Text/isChannelMention.mdx index 31fbcb77..13f0b5bc 100644 --- a/content/docs/(functions)/Text/isChannelMention.mdx +++ b/content/docs/(functions)/Text/isChannelMention.mdx @@ -6,7 +6,7 @@ To check if text provided satisfy discord channel mention format or not ## Usage -```bash +```php $isChannelMention[Text] ``` diff --git a/content/docs/(functions)/Text/isUserMention.mdx b/content/docs/(functions)/Text/isUserMention.mdx index 80524166..0abdae3f 100644 --- a/content/docs/(functions)/Text/isUserMention.mdx +++ b/content/docs/(functions)/Text/isUserMention.mdx @@ -6,7 +6,7 @@ To check if text provided satisfy discord user mention format or not ## Usage -```bash +```php $isUserMention[Text] ``` diff --git a/content/docs/(functions)/Text/isandhas/isConnected.mdx b/content/docs/(functions)/Text/isandhas/isConnected.mdx index 92ec0181..b0a7a482 100644 --- a/content/docs/(functions)/Text/isandhas/isConnected.mdx +++ b/content/docs/(functions)/Text/isandhas/isConnected.mdx @@ -6,7 +6,7 @@ To check whether user is connected to voice channel or not (only cached users) ## Usage -```bash +```php $isConnected[User ID] ``` diff --git a/content/docs/(functions)/Text/isandhas/isStreaming.mdx b/content/docs/(functions)/Text/isandhas/isStreaming.mdx index eec32700..f36f3053 100644 --- a/content/docs/(functions)/Text/isandhas/isStreaming.mdx +++ b/content/docs/(functions)/Text/isandhas/isStreaming.mdx @@ -6,7 +6,7 @@ To check whether user is streaming in a voice channel or not (only cached users) ## Usage -```bash +```php $isStreaming[User ID] ``` diff --git a/content/docs/(functions)/Text/mentionType.mdx b/content/docs/(functions)/Text/mentionType.mdx index 4b9460e3..4afe1382 100644 --- a/content/docs/(functions)/Text/mentionType.mdx +++ b/content/docs/(functions)/Text/mentionType.mdx @@ -6,7 +6,7 @@ Uses an argument to determine the type of the mention (role, user, channel or no ## Usage -```bash +```php $mentionType[mention argument] ``` diff --git a/content/docs/(functions)/Text/mentioned.mdx b/content/docs/(functions)/Text/mentioned.mdx index 7000f5b8..a0a56f53 100644 --- a/content/docs/(functions)/Text/mentioned.mdx +++ b/content/docs/(functions)/Text/mentioned.mdx @@ -6,7 +6,7 @@ Returns the ID of the mentioned user ## Usage -```bash +```php $mentioned[mention number or all;return author ID (yes/no)(optional)] ``` diff --git a/content/docs/(functions)/Text/meta.json b/content/docs/(functions)/Text/meta.json index a4619fa3..bb5d9b8d 100644 --- a/content/docs/(functions)/Text/meta.json +++ b/content/docs/(functions)/Text/meta.json @@ -1,16 +1,16 @@ { - "title": "Text Functions", - "pages": [ - "...", - "!Condition", - "!Embed", - "!Components", - "!Math", - "!textSplit", - "!Array", - "!Object", - "!isandhas", - "!only", - "!Regex" - ] + "title": "Text Functions", + "pages": [ + "...", + "!Condition", + "!Embed", + "!Components", + "!Math", + "!textSplit", + "!Array", + "!Object", + "!isandhas", + "!only", + "!Regex" + ] } diff --git a/content/docs/(functions)/Text/numToWord.mdx b/content/docs/(functions)/Text/numToWord.mdx index 3a3741ab..95841592 100644 --- a/content/docs/(functions)/Text/numToWord.mdx +++ b/content/docs/(functions)/Text/numToWord.mdx @@ -7,7 +7,7 @@ e 5 \> five, maximum number would be "nine hundred ninety-nine nonillion" ## Usage -```bash +```php $numToWord[Number] ``` diff --git a/content/docs/(functions)/Text/numberSeparator.mdx b/content/docs/(functions)/Text/numberSeparator.mdx index 37e7f3e0..6f628a86 100644 --- a/content/docs/(functions)/Text/numberSeparator.mdx +++ b/content/docs/(functions)/Text/numberSeparator.mdx @@ -6,7 +6,7 @@ Separates a number in thousands ## Usage -```bash +```php $numberSeparator[number;separator (optional)] ``` diff --git a/content/docs/(functions)/Text/only/onlyForChannels.mdx b/content/docs/(functions)/Text/only/onlyForChannels.mdx index c24e785e..961063e7 100644 --- a/content/docs/(functions)/Text/only/onlyForChannels.mdx +++ b/content/docs/(functions)/Text/only/onlyForChannels.mdx @@ -6,7 +6,7 @@ The command will only be executable in the provided channel IDs. ## Usage -```bash +```php $onlyForChannels[channelID;channelID2;...;error message] ``` diff --git a/content/docs/(functions)/Text/only/onlyIfMessageContains.mdx b/content/docs/(functions)/Text/only/onlyIfMessageContains.mdx index 4b1fbe62..dc62fe39 100644 --- a/content/docs/(functions)/Text/only/onlyIfMessageContains.mdx +++ b/content/docs/(functions)/Text/only/onlyIfMessageContains.mdx @@ -6,7 +6,7 @@ Continues the execution only if 'text' contains all provided words, returns the ## Usage -```bash +```php $onlyIfMessageContains[text;word1;word2;...;error message] ``` diff --git a/content/docs/(functions)/Text/padLeft.mdx b/content/docs/(functions)/Text/padLeft.mdx index 5b573679..a5757131 100644 --- a/content/docs/(functions)/Text/padLeft.mdx +++ b/content/docs/(functions)/Text/padLeft.mdx @@ -6,7 +6,7 @@ Adds a filling text at the start of text, depend on the maximum length ## Usage -```bash +```php $padLeft[Text;Max Length;Filling Text] ``` diff --git a/content/docs/(functions)/Text/padRight.mdx b/content/docs/(functions)/Text/padRight.mdx index bbb9c83a..422815fe 100644 --- a/content/docs/(functions)/Text/padRight.mdx +++ b/content/docs/(functions)/Text/padRight.mdx @@ -6,7 +6,7 @@ Adds a filling text at the end of text, depend on the maximum length ## Usage -```bash +```php $padRight[Text;Max Length;Filling Text] ``` diff --git a/content/docs/(functions)/Text/stringEndsWith.mdx b/content/docs/(functions)/Text/stringEndsWith.mdx index 42309751..f555a90d 100644 --- a/content/docs/(functions)/Text/stringEndsWith.mdx +++ b/content/docs/(functions)/Text/stringEndsWith.mdx @@ -6,7 +6,7 @@ Checks if given message ends with given text ## Usage -```bash +```php $stringEndsWith[message;text] ``` diff --git a/content/docs/(functions)/Text/stringStartsWith.mdx b/content/docs/(functions)/Text/stringStartsWith.mdx index 7aef3e83..71b5166d 100644 --- a/content/docs/(functions)/Text/stringStartsWith.mdx +++ b/content/docs/(functions)/Text/stringStartsWith.mdx @@ -6,7 +6,7 @@ Determines whether given message starts by another message or not ## Usage -```bash +```php $stringStartsWith[message;text] ``` diff --git a/content/docs/(functions)/Text/textLength.mdx b/content/docs/(functions)/Text/textLength.mdx index 5e1cb8f0..45bba6f7 100644 --- a/content/docs/(functions)/Text/textLength.mdx +++ b/content/docs/(functions)/Text/textLength.mdx @@ -6,7 +6,7 @@ Counts character of a text, or the user's message. ## Usage -```bash +```php $textLength or $textLength[text] ``` diff --git a/content/docs/(functions)/Text/textShuffle.mdx b/content/docs/(functions)/Text/textShuffle.mdx index 34e87c48..be765180 100644 --- a/content/docs/(functions)/Text/textShuffle.mdx +++ b/content/docs/(functions)/Text/textShuffle.mdx @@ -7,7 +7,7 @@ Shuffle a text\ ## Usage -```bash +```php $textShuffle[Text;Separator (optional)] ``` diff --git a/content/docs/(functions)/Text/textSlice.mdx b/content/docs/(functions)/Text/textSlice.mdx index abfd3fb7..688f003f 100644 --- a/content/docs/(functions)/Text/textSlice.mdx +++ b/content/docs/(functions)/Text/textSlice.mdx @@ -6,7 +6,7 @@ Returns \ after given position or text in between X and Y ## Usage -```bash +```php $textSlice[text;x;y (optional)] ``` diff --git a/content/docs/(functions)/Text/textSplit/removeSplitTextElement.mdx b/content/docs/(functions)/Text/textSplit/removeSplitTextElement.mdx index 71da6366..7afa3e03 100644 --- a/content/docs/(functions)/Text/textSplit/removeSplitTextElement.mdx +++ b/content/docs/(functions)/Text/textSplit/removeSplitTextElement.mdx @@ -6,7 +6,7 @@ Removes an element or elements from $textSplit by using their indexes. ## Usage -```bash +```php $removeSplitTextElement[index;index2;...] ``` diff --git a/content/docs/(functions)/Text/textTrim.mdx b/content/docs/(functions)/Text/textTrim.mdx index bcc15456..5dd0efee 100644 --- a/content/docs/(functions)/Text/textTrim.mdx +++ b/content/docs/(functions)/Text/textTrim.mdx @@ -6,7 +6,7 @@ Removes useless spaces from given text. ## Usage -```bash +```php $textTrim[text] ``` diff --git a/content/docs/(functions)/Text/uri.mdx b/content/docs/(functions)/Text/uri.mdx index dff2e6ff..6e81ce8f 100644 --- a/content/docs/(functions)/Text/uri.mdx +++ b/content/docs/(functions)/Text/uri.mdx @@ -6,7 +6,7 @@ Decodes or Encodes a url Example when you encode a url 'hello world' = 'hello%20 ## Usage -```bash +```php $uri[decode/encode;text] ``` diff --git a/content/docs/(functions)/Text/void.mdx b/content/docs/(functions)/Text/void.mdx index 6d601ab9..d9f7345a 100644 --- a/content/docs/(functions)/Text/void.mdx +++ b/content/docs/(functions)/Text/void.mdx @@ -6,7 +6,7 @@ A function that eats input but return nothing! ## Usage -```bash +```php $void[ANYTHING] ``` diff --git a/content/docs/(functions)/Threads/addUsersToThread.mdx b/content/docs/(functions)/Threads/addUsersToThread.mdx index d33b996b..7c743313 100644 --- a/content/docs/(functions)/Threads/addUsersToThread.mdx +++ b/content/docs/(functions)/Threads/addUsersToThread.mdx @@ -6,18 +6,18 @@ Add users to a thread ## Usage -```bash +```php $addUsersToThread[Thread ID;User 1 ID;User 2 ID;User 3 ID....] ``` ### Example (Add the triggerer to a thread): -```bash +```php $addUsersToThread[1024373454578917426;$authorID] ``` ### Example (add multiple users): -```bash +```php $addUsersToThread[1024373454578917426;$authorID;788361834360864808] ``` \ No newline at end of file diff --git a/content/docs/(functions)/Threads/archiveThread.mdx b/content/docs/(functions)/Threads/archiveThread.mdx index 55b94d6a..47c2f8e6 100644 --- a/content/docs/(functions)/Threads/archiveThread.mdx +++ b/content/docs/(functions)/Threads/archiveThread.mdx @@ -6,18 +6,18 @@ archive/unarchive a thread ## Usage -```bash +```php $archiveThread[Thread ID;Archive? (yes/no)] ``` ### Example (Archiving a thread): -```bash +```php $archiveThread[1024373454578917426] ``` ### Example (Unarchiving a thread): -```bash +```php $archiveThread[1024373454578917426;no] ``` \ No newline at end of file diff --git a/content/docs/(functions)/Threads/closePost.mdx b/content/docs/(functions)/Threads/closePost.mdx index ded539db..ccd2608f 100644 --- a/content/docs/(functions)/Threads/closePost.mdx +++ b/content/docs/(functions)/Threads/closePost.mdx @@ -6,18 +6,18 @@ Close/Open a post ## Usage -```bash +```php $closePost[Post ID;Close (yes/no)] ``` ### Example (Closing a post): -```bash +```php $closePost[1024373454578917426] ``` ### Example (Opening a post): -```bash +```php $closePost[1024373454578917426;no] ``` \ No newline at end of file diff --git a/content/docs/(functions)/Threads/createPost.mdx b/content/docs/(functions)/Threads/createPost.mdx index eebf4f6c..8949e14d 100644 --- a/content/docs/(functions)/Threads/createPost.mdx +++ b/content/docs/(functions)/Threads/createPost.mdx @@ -6,7 +6,7 @@ add a new post in forum channel ## Usage -```bash +```php $createPost[ {forum=Forum Name/ID} {title=Post title} diff --git a/content/docs/(functions)/Threads/createThread.mdx b/content/docs/(functions)/Threads/createThread.mdx index 43cde070..942e1b88 100644 --- a/content/docs/(functions)/Threads/createThread.mdx +++ b/content/docs/(functions)/Threads/createThread.mdx @@ -9,7 +9,7 @@ Create a thread, corresponding to the messageID specified in the function `$createThread[Channel ID;Message ID;Thread Name;Reason;Duration (1h/1d/3d/7d)(optional);Return ID (yes/no)(optional);Private Thread? (yes/no)]` #### Example (Create Thread on user message): -```bash +```php $createThread[ {channel=$channelID} {message=$messageID} @@ -18,7 +18,7 @@ $createThread[ ``` #### Example (Create A private thread): -```bash +```php $createThread[ {channel=$channelID} {message=$messageID} diff --git a/content/docs/(functions)/Threads/deletePost.mdx b/content/docs/(functions)/Threads/deletePost.mdx index 46ac279d..1c54a093 100644 --- a/content/docs/(functions)/Threads/deletePost.mdx +++ b/content/docs/(functions)/Threads/deletePost.mdx @@ -6,11 +6,11 @@ delete a post ## Usage -```bash +```php $deletePost[Post ID] ``` ### Example: -```bash +```php $deletePost[1024373454578917426] ``` \ No newline at end of file diff --git a/content/docs/(functions)/Threads/deletePosts.mdx b/content/docs/(functions)/Threads/deletePosts.mdx index 8350eba4..e356e7a5 100644 --- a/content/docs/(functions)/Threads/deletePosts.mdx +++ b/content/docs/(functions)/Threads/deletePosts.mdx @@ -6,11 +6,11 @@ delete posts up to 10 post ## Usage -```bash +```php $deletePost[Post 1;Post 2;...] ``` ### Example: -```bash +```php $deletePosts[1024373454578917426;1024373433578915132;1222373424378915555] ``` \ No newline at end of file diff --git a/content/docs/(functions)/Threads/editPost.mdx b/content/docs/(functions)/Threads/editPost.mdx index 04e1e242..50293365 100644 --- a/content/docs/(functions)/Threads/editPost.mdx +++ b/content/docs/(functions)/Threads/editPost.mdx @@ -6,7 +6,7 @@ edit an existing post in forum channel ## Usage -```bash +```php $editPost[ {post_id=Post ID} {title=New Post title} @@ -43,7 +43,7 @@ It accept embed and curl format like\ ``` ### Example (Lock , Add Tag Inactive, Remove Tag Active): -```bash +```php $editPost[ {id=1234} {locked=yes} diff --git a/content/docs/(functions)/Threads/lockPost.mdx b/content/docs/(functions)/Threads/lockPost.mdx index fbe30473..f230a5aa 100644 --- a/content/docs/(functions)/Threads/lockPost.mdx +++ b/content/docs/(functions)/Threads/lockPost.mdx @@ -6,18 +6,18 @@ lock/unlock a post ## Usage -```bash +```php $lockPost[Post ID;Lock? (yes/no)] ``` ### Example (Locking a post): -```bash +```php $lockPost[1024373454578917426] ``` ### Example (Unlocking a post): -```bash +```php $lockPost[1024373454578917426;no] ``` \ No newline at end of file diff --git a/content/docs/(functions)/Threads/lockThread.mdx b/content/docs/(functions)/Threads/lockThread.mdx index ec4a3c23..0d0b33de 100644 --- a/content/docs/(functions)/Threads/lockThread.mdx +++ b/content/docs/(functions)/Threads/lockThread.mdx @@ -6,18 +6,18 @@ lock/unlock a thread ## Usage -```bash +```php $lockThread[Thread ID;Lock? (yes/no)] ``` ### Example (Locking a thread): -```bash +```php $lockThread[1024373454578917426] ``` ### Example (Unlocking a thread): -```bash +```php $lockThread[1024373454578917426;no] ``` \ No newline at end of file diff --git a/content/docs/(functions)/Threads/meta.json b/content/docs/(functions)/Threads/meta.json index 20057db8..40235148 100644 --- a/content/docs/(functions)/Threads/meta.json +++ b/content/docs/(functions)/Threads/meta.json @@ -1,6 +1,4 @@ { - "title": "Threads Functions", - "pages": [ - "..." - ] + "title": "Threads Functions", + "pages": ["..."] } diff --git a/content/docs/(functions)/Threads/pinPost.mdx b/content/docs/(functions)/Threads/pinPost.mdx index ea0eecf3..159c893a 100644 --- a/content/docs/(functions)/Threads/pinPost.mdx +++ b/content/docs/(functions)/Threads/pinPost.mdx @@ -6,18 +6,18 @@ pin/unpin a post ## Usage -```bash +```php $pinPost[Post ID;pin? (yes/no)] ``` ### Example (pining a post): -```bash +```php $pinPost[1024373454578917426] ``` ### Example (Unpining a post): -```bash +```php $pinPost[1024373454578917426;no] ``` \ No newline at end of file diff --git a/content/docs/(functions)/Threads/removeUsersFromThread.mdx b/content/docs/(functions)/Threads/removeUsersFromThread.mdx index b50b36ea..d8de79bd 100644 --- a/content/docs/(functions)/Threads/removeUsersFromThread.mdx +++ b/content/docs/(functions)/Threads/removeUsersFromThread.mdx @@ -6,18 +6,18 @@ remove users from a thread ## Usage -```bash +```php $removeUsersFromThread[Thread ID;User 1 ID;User 2 ID;User 3 ID....] ``` ### Example (remove the triggerer from a thread): -```bash +```php $removeUsersFromThread[1024373454578917426;$authorID] ``` ### Example (remove multiple users): -```bash +```php $removeUsersFromThread[1024373454578917426;$authorID;788361834360864808] ``` \ No newline at end of file diff --git a/content/docs/(functions)/Timeout/meta.json b/content/docs/(functions)/Timeout/meta.json index bec6ed69..b2067ae1 100644 --- a/content/docs/(functions)/Timeout/meta.json +++ b/content/docs/(functions)/Timeout/meta.json @@ -1,6 +1,4 @@ { - "title": "User Timeout Functions", - "pages": [ - "..." - ] + "title": "User Timeout Functions", + "pages": ["..."] } diff --git a/content/docs/(functions)/Timeout/timeoutAction.mdx b/content/docs/(functions)/Timeout/timeoutAction.mdx index ae3df14c..df00cd57 100644 --- a/content/docs/(functions)/Timeout/timeoutAction.mdx +++ b/content/docs/(functions)/Timeout/timeoutAction.mdx @@ -7,7 +7,7 @@ This function only works in the Timeout trigger. ## Usage -```bash +```php $timeoutAction ``` diff --git a/content/docs/(functions)/Timeout/timeoutBy.mdx b/content/docs/(functions)/Timeout/timeoutBy.mdx index 4c6a4051..dd8aac29 100644 --- a/content/docs/(functions)/Timeout/timeoutBy.mdx +++ b/content/docs/(functions)/Timeout/timeoutBy.mdx @@ -7,7 +7,7 @@ This function only works in the Timeout trigger. ## Usage -```bash +```php $timeoutBy ``` diff --git a/content/docs/(functions)/Timeout/timeoutReason.mdx b/content/docs/(functions)/Timeout/timeoutReason.mdx index 6824ff24..c6621e80 100644 --- a/content/docs/(functions)/Timeout/timeoutReason.mdx +++ b/content/docs/(functions)/Timeout/timeoutReason.mdx @@ -7,7 +7,7 @@ This function only works in the Timeout trigger. ## Usage -```bash +```php $timeoutReason ``` diff --git a/content/docs/(functions)/Timeout/userGetTimeout.mdx b/content/docs/(functions)/Timeout/userGetTimeout.mdx index 58f263a5..8fa87ab6 100644 --- a/content/docs/(functions)/Timeout/userGetTimeout.mdx +++ b/content/docs/(functions)/Timeout/userGetTimeout.mdx @@ -7,7 +7,7 @@ If user is not timed out, it will return 0. ## Usage -```bash +```php $userGetTimeout[user id] ``` diff --git a/content/docs/(functions)/Timeout/userRemoveTimeout.mdx b/content/docs/(functions)/Timeout/userRemoveTimeout.mdx index 2a399e7b..ac344269 100644 --- a/content/docs/(functions)/Timeout/userRemoveTimeout.mdx +++ b/content/docs/(functions)/Timeout/userRemoveTimeout.mdx @@ -6,7 +6,7 @@ Removes a timeout from a user. ## Usage -```bash +```php $userRemoveTimeout[user id;reason (optional)] ``` diff --git a/content/docs/(functions)/Timeout/userSetTimeout.mdx b/content/docs/(functions)/Timeout/userSetTimeout.mdx index 21c74730..a98a4e9e 100644 --- a/content/docs/(functions)/Timeout/userSetTimeout.mdx +++ b/content/docs/(functions)/Timeout/userSetTimeout.mdx @@ -6,7 +6,7 @@ Sets a user timeout, so the user cannot talk/interact in the server. ## Usage -```bash +```php $userSetTimeout[user id;time (optional, default:'10m');reason (optional)] ``` diff --git a/content/docs/(functions)/Useful/callFunction.mdx b/content/docs/(functions)/Useful/callFunction.mdx index 77926c51..240943d5 100644 --- a/content/docs/(functions)/Useful/callFunction.mdx +++ b/content/docs/(functions)/Useful/callFunction.mdx @@ -9,7 +9,7 @@ To call a user-defined function created with `$function` `$callFunction[Function Name;Argument 1 (optional);Argument 2....(optional)]` #### Example: -```bash +```php $callFunction[printHello;Mika] ``` diff --git a/content/docs/(functions)/Useful/commandCode.mdx b/content/docs/(functions)/Useful/commandCode.mdx index 9ff431fa..31271e26 100644 --- a/content/docs/(functions)/Useful/commandCode.mdx +++ b/content/docs/(functions)/Useful/commandCode.mdx @@ -6,7 +6,7 @@ Returns the code of the current command. ## Usage -```bash +```php $commandCode ``` diff --git a/content/docs/(functions)/Useful/deleteTrigger.mdx b/content/docs/(functions)/Useful/deleteTrigger.mdx index ce8d6ed0..94271117 100644 --- a/content/docs/(functions)/Useful/deleteTrigger.mdx +++ b/content/docs/(functions)/Useful/deleteTrigger.mdx @@ -6,7 +6,7 @@ Delete a command using its token, **empty token = delete current command** ## Usage -```bash +```php $deleteTrigger[Token;Delete Current Trigger If Empty (yes/no, default yes)] ``` diff --git a/content/docs/(functions)/Useful/editTrigger.mdx b/content/docs/(functions)/Useful/editTrigger.mdx index 4b991dce..952a540b 100644 --- a/content/docs/(functions)/Useful/editTrigger.mdx +++ b/content/docs/(functions)/Useful/editTrigger.mdx @@ -8,12 +8,12 @@ Editable types: name, runonlyin, ignorerole, type, trigger, channelused, minper ## Usage -```bash +```php $editTrigger[InfoType;New value;Token (optional)] ``` ### Example: -```bash +```php $editTrigger[name;Edited Name] ``` @@ -21,6 +21,6 @@ $editTrigger[name;Edited Name] you change the trigger time, with `time` as type, and value to be the timestamp (in ms) of the next trigger time, make sure it's a time in future Example (Set the time to trigger after 10s) -```bash +```php $editTrigger[time;$math[$timestamp+10000];$token] ``` \ No newline at end of file diff --git a/content/docs/(functions)/Useful/endForEach.mdx b/content/docs/(functions)/Useful/endForEach.mdx index 23e83892..0a962a8d 100644 --- a/content/docs/(functions)/Useful/endForEach.mdx +++ b/content/docs/(functions)/Useful/endForEach.mdx @@ -6,7 +6,7 @@ To close $foreach ## Usage -```bash +```php Example: $forEach[...] CODE diff --git a/content/docs/(functions)/Useful/endFunction.mdx b/content/docs/(functions)/Useful/endFunction.mdx index f7b7e153..24b22786 100644 --- a/content/docs/(functions)/Useful/endFunction.mdx +++ b/content/docs/(functions)/Useful/endFunction.mdx @@ -6,12 +6,12 @@ To close $function ## Usage -```bash +```php $endFunction ``` ### Example: -```bash +```php $function[Function Name;Paramaters..] CODE $endFunction diff --git a/content/docs/(functions)/Useful/endTimeout.mdx b/content/docs/(functions)/Useful/endTimeout.mdx index e95222f3..d5120d2b 100644 --- a/content/docs/(functions)/Useful/endTimeout.mdx +++ b/content/docs/(functions)/Useful/endTimeout.mdx @@ -6,7 +6,7 @@ To close $setTimeout ## Usage -```bash +```php $endTimeout ``` diff --git a/content/docs/(functions)/Useful/forEach.mdx b/content/docs/(functions)/Useful/forEach.mdx index 57581641..9fb6b85b 100644 --- a/content/docs/(functions)/Useful/forEach.mdx +++ b/content/docs/(functions)/Useful/forEach.mdx @@ -5,7 +5,7 @@ title: "$forEach" Will loop over a list and every loop it will take an item and assign it inside varname accessible by $get[varname] or $varname ## Usage: -```bash +```php $forEach[varname;LIST (ex: mido rake azz);Separator (Optional, default is space)] ``` ## Loop Limits @@ -18,7 +18,7 @@ Loops in this function are limited to a certain number of cycles. These limits v | 5 (Ultra) | 60 | ## Example: -```bash +```php $forEach[member;Rake, Mido, Mika, Azz, Felix, Flinkz, Wiki, Ddk;, ] $get[member], is one of our Staff Members! $endForEach diff --git a/content/docs/(functions)/Useful/function.mdx b/content/docs/(functions)/Useful/function.mdx index cc5903fa..e77ec854 100644 --- a/content/docs/(functions)/Useful/function.mdx +++ b/content/docs/(functions)/Useful/function.mdx @@ -9,7 +9,7 @@ Create a user-defined function that can be called by $callFunction or $functionN `$function[Function name;Param 1 (optional);Param 2...(optional)]` #### Example: -```bash +```php $function[printHello;name] Hello $name $endFunction diff --git a/content/docs/(functions)/Useful/getToken.mdx b/content/docs/(functions)/Useful/getToken.mdx index a4aa6a43..355a07f0 100644 --- a/content/docs/(functions)/Useful/getToken.mdx +++ b/content/docs/(functions)/Useful/getToken.mdx @@ -7,12 +7,12 @@ search for command name, and return the first matching command token.\ ## Usage -```bash +```php $getToken[Name] ``` ### Example: -```bash +```php $getToken[Welcomer] Output:dZK1x ``` \ No newline at end of file diff --git a/content/docs/(functions)/Useful/getTrigger.mdx b/content/docs/(functions)/Useful/getTrigger.mdx index 6c067a43..cb1e5553 100644 --- a/content/docs/(functions)/Useful/getTrigger.mdx +++ b/content/docs/(functions)/Useful/getTrigger.mdx @@ -8,11 +8,11 @@ Valid InfoType: name, token, guild, code, runonlyin, ignorerole, type, typename, ## Usage -```bash +```php $getTrigger[InfoType;Token (optional)] ``` ### Example: -```bash +```php $getTrigger[name] ``` \ No newline at end of file diff --git a/content/docs/(functions)/Useful/ignoreErrors.mdx b/content/docs/(functions)/Useful/ignoreErrors.mdx index 6aa1f64e..65ab92b7 100644 --- a/content/docs/(functions)/Useful/ignoreErrors.mdx +++ b/content/docs/(functions)/Useful/ignoreErrors.mdx @@ -6,7 +6,7 @@ It will tell the interpreter to ignore the errors and in case of error, the func ## Usage -```bash +```php $ignoreErrors[yes/no;placeholder (default: error)] ``` diff --git a/content/docs/(functions)/Useful/includeLibrary.mdx b/content/docs/(functions)/Useful/includeLibrary.mdx index 8ece6926..c22f2122 100644 --- a/content/docs/(functions)/Useful/includeLibrary.mdx +++ b/content/docs/(functions)/Useful/includeLibrary.mdx @@ -6,7 +6,7 @@ To include code created in Library trigger ## Usage -```bash +```php $includeLibrary[Library name] ``` diff --git a/content/docs/(functions)/Useful/jsonRequest.mdx b/content/docs/(functions)/Useful/jsonRequest.mdx index 39d1b647..3ff7eb95 100644 --- a/content/docs/(functions)/Useful/jsonRequest.mdx +++ b/content/docs/(functions)/Useful/jsonRequest.mdx @@ -11,7 +11,7 @@ The URL must be whitelisted, you can check in our support server. ## Usage -```bash +```php $jsonRequest[url;property;error message;headerName:headerValue;headerName:headerValue;...] ``` @@ -28,6 +28,6 @@ Assume `my api url` return json reply like: ``` Code: -```bash +```php Your money is $jsonRequest[my api;money;failed to get the money] ``` diff --git a/content/docs/(functions)/Useful/meta.json b/content/docs/(functions)/Useful/meta.json index 828326dc..11fdb0d5 100644 --- a/content/docs/(functions)/Useful/meta.json +++ b/content/docs/(functions)/Useful/meta.json @@ -1,6 +1,4 @@ { - "title": "Useful Functions", - "pages": [ - "..." - ] + "title": "Useful Functions", + "pages": ["..."] } diff --git a/content/docs/(functions)/Useful/return.mdx b/content/docs/(functions)/Useful/return.mdx index 00861524..1e5338b9 100644 --- a/content/docs/(functions)/Useful/return.mdx +++ b/content/docs/(functions)/Useful/return.mdx @@ -9,12 +9,12 @@ It has no effect outside the user-defined function ## Usage -```bash +```php $return[Return Value(optional)] ``` ### Example: -```bash +```php $function[add;num1;num2] $return[$math[$num1+$num2]] $endFunction diff --git a/content/docs/(functions)/Useful/stop.mdx b/content/docs/(functions)/Useful/stop.mdx index 52d2bddc..d11b6398 100644 --- a/content/docs/(functions)/Useful/stop.mdx +++ b/content/docs/(functions)/Useful/stop.mdx @@ -38,7 +38,7 @@ You can send embed using [Message Curl Format](/CodeReferences/ref.message_curl_ Using plain text in your code, like below will **NOT** work!! This code doesn't work: -```bash +```php This is plain text before the stop function $stop This is plain text after the stop function diff --git a/content/docs/(functions)/Useful/triggerExists.mdx b/content/docs/(functions)/Useful/triggerExists.mdx index aacb9986..b823c87e 100644 --- a/content/docs/(functions)/Useful/triggerExists.mdx +++ b/content/docs/(functions)/Useful/triggerExists.mdx @@ -6,7 +6,7 @@ Check if a trigger with the specified token exists ## Usage -```bash +```php $triggerExists[Token] ``` diff --git a/content/docs/(functions)/Variables/increaseChannelVar.mdx b/content/docs/(functions)/Variables/increaseChannelVar.mdx index 94de2b79..361d58a0 100644 --- a/content/docs/(functions)/Variables/increaseChannelVar.mdx +++ b/content/docs/(functions)/Variables/increaseChannelVar.mdx @@ -7,12 +7,12 @@ If the variable doesn't exist it will be created and its value set to the answer ## Usage -```bash +```php $increaseChannelVar[variable name;amount/expression;channel id;default amount (default is 0)] ``` ### Example (increase channel messages by 1): -```bash +```php $increaseChannelVar[messages;1] diff --git a/content/docs/(functions)/Variables/increaseServerVar.mdx b/content/docs/(functions)/Variables/increaseServerVar.mdx index 8a5860bf..2d822ce9 100644 --- a/content/docs/(functions)/Variables/increaseServerVar.mdx +++ b/content/docs/(functions)/Variables/increaseServerVar.mdx @@ -7,12 +7,12 @@ If the variable doesn't exist it will be created and its value set to the answer ## Usage -```bash +```php $increaseServerVar[variable name;amount/expression;default amount (default is 0)] ``` ### Example (increase ticket numbers by 1): -```bash +```php $increaseServerVar[ticket numbers;1] diff --git a/content/docs/(functions)/Variables/increaseUserVar.mdx b/content/docs/(functions)/Variables/increaseUserVar.mdx index 71907b44..0c95253c 100644 --- a/content/docs/(functions)/Variables/increaseUserVar.mdx +++ b/content/docs/(functions)/Variables/increaseUserVar.mdx @@ -7,12 +7,12 @@ If the variable doesn't exist it will be created and its value set to the answer ## Usage -```bash +```php $increaseUserVar[variable name;amount/expression;user id;default amount (default is 0)] ``` ### Example (increase user money by 1000): -```bash +```php $increaseUserVar[money;1000] diff --git a/content/docs/(functions)/Variables/initVar.mdx b/content/docs/(functions)/Variables/initVar.mdx index 2cdc14ce..e79bf12a 100644 --- a/content/docs/(functions)/Variables/initVar.mdx +++ b/content/docs/(functions)/Variables/initVar.mdx @@ -6,7 +6,7 @@ Initializes a variable with a default value if the var is undefined or does not ## Usage -```bash +```php $initVar[type;varname;Default Value;Custom ID (optional)] ``` @@ -19,21 +19,21 @@ server, message, channel, user * For type 'user', it will be the user id. ### Example (Server Var): -```bash +```php $initVar[server;totalPolls;0] ``` ### Example (Channel Var): -```bash +```php $initVar[channel;ticket-owner;$authorID;$channelID] ``` ### Example (User Var): -```bash +```php $initVar[user;money;0;$userID] ``` ### Example (Message Var): -```bash +```php $initVar[message;reactions;0;$messageID] ``` \ No newline at end of file diff --git a/content/docs/(functions)/Variables/meta.json b/content/docs/(functions)/Variables/meta.json index aced8042..4d707058 100644 --- a/content/docs/(functions)/Variables/meta.json +++ b/content/docs/(functions)/Variables/meta.json @@ -1,6 +1,4 @@ { - "title": "Variables Functions", - "pages": [ - "..." - ] + "title": "Variables Functions", + "pages": ["..."] } diff --git a/content/docs/(functions)/Variables/userVarRank.mdx b/content/docs/(functions)/Variables/userVarRank.mdx index 9657dadc..c340a38b 100644 --- a/content/docs/(functions)/Variables/userVarRank.mdx +++ b/content/docs/(functions)/Variables/userVarRank.mdx @@ -6,7 +6,7 @@ Return user var rank returned by $userleaderboard for a single user ## Usage -```bash +```php $uservarRank[Variable name;Order Type (optional) (asc/desc, default is desc);User ID (optional)] ``` diff --git a/content/docs/(functions)/Variables/viewChannelVars.mdx b/content/docs/(functions)/Variables/viewChannelVars.mdx index cd13c814..73532228 100644 --- a/content/docs/(functions)/Variables/viewChannelVars.mdx +++ b/content/docs/(functions)/Variables/viewChannelVars.mdx @@ -6,7 +6,7 @@ View a list of all the variables that are defined for a specific channel, and se ## Usage -```bash +```php $viewChannelVars[Channel ID (default: $channelID);Separator;Query Regex (optional)] ``` diff --git a/content/docs/(functions)/Variables/viewServerVars.mdx b/content/docs/(functions)/Variables/viewServerVars.mdx index f5e5a0a9..04d3f1d5 100644 --- a/content/docs/(functions)/Variables/viewServerVars.mdx +++ b/content/docs/(functions)/Variables/viewServerVars.mdx @@ -6,7 +6,7 @@ View a list of all the variables that are defined for the server, and search for ## Usage -```bash +```php $viewServerVars[Separator;Query Regex (optional)] ``` diff --git a/content/docs/(functions)/Variables/viewUserVars.mdx b/content/docs/(functions)/Variables/viewUserVars.mdx index 7492fafa..c60d9beb 100644 --- a/content/docs/(functions)/Variables/viewUserVars.mdx +++ b/content/docs/(functions)/Variables/viewUserVars.mdx @@ -6,7 +6,7 @@ View a list of all the variables that are defined for a specific user ## Usage -```bash +```php $viewUserVars[User ID;Separator] ``` diff --git a/content/docs/(functions)/meta.json b/content/docs/(functions)/meta.json index b996eb36..119eccfe 100644 --- a/content/docs/(functions)/meta.json +++ b/content/docs/(functions)/meta.json @@ -1,34 +1,34 @@ { - "title": "Functions", - "pages": [ - "Member", - "Channel", - "Message", - "Interaction", - "Threads", - "Role", - "Server", - "Random", - "Text", - "./Text/Condition", - "Stickers", - "Events", - "Timeout", - "./Text/Embed", - "./Text/Components", - "./Text/Math", - "./Text/textSplit", - "./Text/Array", - "./Text/Object", - "./Text/isandhas", - "./Text/only", - "./Text/Regex", - "Date", - "Variables", - "Bot", - "Useful", - "Cooldown", - "Request", - "Image" - ] + "title": "Functions", + "pages": [ + "Member", + "Channel", + "Message", + "Interaction", + "Threads", + "Role", + "Server", + "Random", + "Text", + "./Text/Condition", + "Stickers", + "Events", + "Timeout", + "./Text/Embed", + "./Text/Components", + "./Text/Math", + "./Text/textSplit", + "./Text/Array", + "./Text/Object", + "./Text/isandhas", + "./Text/only", + "./Text/Regex", + "Date", + "Variables", + "Bot", + "Useful", + "Cooldown", + "Request", + "Image" + ] } diff --git a/content/docs/Changelogs/meta.json b/content/docs/Changelogs/meta.json index 7b80bb78..8f1fcfa9 100644 --- a/content/docs/Changelogs/meta.json +++ b/content/docs/Changelogs/meta.json @@ -1,6 +1,4 @@ { - "title": "Changelogs", - "pages": [ - "..." - ] + "title": "Changelogs", + "pages": ["..."] } diff --git a/content/docs/Changelogs/v1.4.4.mdx b/content/docs/Changelogs/v1.4.4.mdx index 8b756eda..f1d8a32e 100644 --- a/content/docs/Changelogs/v1.4.4.mdx +++ b/content/docs/Changelogs/v1.4.4.mdx @@ -274,17 +274,17 @@ $securityPause[Duration of Pause (i.e 2h);Pause Invite (Yes/No);Pause DM (Yes/No ``` ##### Example (Pause invites for 24 hours) -```bash +```php $securityPause[24h;yes;no] ``` ##### Example (Pause DMs for 12 hours) -```bash +```php $securityPause[12h;no;yes] ``` ##### Example (Pause invites and DMs for 24 hours) -```bash +```php $securityPause[24h;yes;yes] ``` diff --git a/content/docs/CodeReferences/ref.expression.mdx b/content/docs/CodeReferences/ref.expression.mdx index 350da2b3..58126825 100644 --- a/content/docs/CodeReferences/ref.expression.mdx +++ b/content/docs/CodeReferences/ref.expression.mdx @@ -31,7 +31,7 @@ Here's a breakdown of the available operators: **Example:** -```bash +```php $username==Mido ``` diff --git a/content/docs/Contribution_Info/meta.json b/content/docs/Contribution_Info/meta.json index 34e210e6..a379f633 100644 --- a/content/docs/Contribution_Info/meta.json +++ b/content/docs/Contribution_Info/meta.json @@ -1,6 +1,4 @@ { - "title": "Contribute", - "pages": [ - "..." - ] + "title": "Contribute", + "pages": ["..."] } diff --git a/content/docs/Guide/meta.json b/content/docs/Guide/meta.json index e75116e1..9c8455f2 100644 --- a/content/docs/Guide/meta.json +++ b/content/docs/Guide/meta.json @@ -1,13 +1,15 @@ { - "pages": [ - "1.create", - "syntax", - "5.comment", - "6.variables", - "7.array", - "4.template", - "2.faq", - "...", - "!3.policy" - ] + "pages": [ + "../index", + "1.create", + "syntax", + "5.comment", + "6.variables", + "7.array", + "4.template", + "2.faq", + "...", + "!3.policy" + ], + "defaultOpen": true } diff --git a/content/docs/Legal/meta.json b/content/docs/Legal/meta.json index 69d951bf..66c1b4fd 100644 --- a/content/docs/Legal/meta.json +++ b/content/docs/Legal/meta.json @@ -1,7 +1,5 @@ { - "title": "Legal", - "pages": [ - "..." - ], - "defaultOpen": true + "title": "Legal", + "pages": ["..."], + "defaultOpen": true } diff --git a/content/docs/Other/curl.mdx b/content/docs/Other/curl.mdx index 57507807..6ea6a828 100644 --- a/content/docs/Other/curl.mdx +++ b/content/docs/Other/curl.mdx @@ -16,7 +16,7 @@ Instead of using parameter arrays like `$randomText[one;two;three]`, curl argume Let's say you want to create a text channel. Using traditional parameters, you might need to include several empty values for optional settings. With curl arguments, it's much simpler: -```bash +```php $createChannel[ {name=channelName} {type=text} diff --git a/content/docs/Other/meta.json b/content/docs/Other/meta.json index 870de569..c8b72694 100644 --- a/content/docs/Other/meta.json +++ b/content/docs/Other/meta.json @@ -1,8 +1,4 @@ { - "title": "Other Information", - "pages": [ - "...", - "!syntax" - ], - "defaultOpen": true + "title": "Other Information", + "pages": ["...", "!syntax"] } diff --git a/content/docs/Trigger/1.triggers.mdx b/content/docs/Trigger/1.triggers.mdx index ba27a9cb..48a55965 100644 --- a/content/docs/Trigger/1.triggers.mdx +++ b/content/docs/Trigger/1.triggers.mdx @@ -5,68 +5,85 @@ title: "Triggers showcase" Here's a quick preview of all available triggers: ## Word + [Triggers on specific words/patterns](/Trigger/word) -> ![Word](https://i.imgur.com/zQtDgDM.png) +![Word](https://i.imgur.com/zQtDgDM.png) ## Reaction + [Fires once someone reacts to a message](/Trigger/reaction) -> ![](https://i.imgur.com/h1pe28J.gif) +![](https://i.imgur.com/h1pe28J.gif) ## Button + [Detects users clicking buttons sent by the bot](/Trigger/button) -> ![](https://i.imgur.com/QrxFg8d.png) +![](https://i.imgur.com/QrxFg8d.png) ## Menu + [Activates when someone confirms their choice in menu](/Trigger/menu) -> ![](https://i.imgur.com/7wZLMIq.gif) +![](https://i.imgur.com/7wZLMIq.gif) ## Slash command + [Responds to a discord slash command created with the bot](/Trigger/slash) -> ![](https://i.imgur.com/Hspy46H.gif) +![](https://i.imgur.com/Hspy46H.gif) ## Modal + [Triggers on submittion of a modal (form) if that modal was sent by the bot](/Trigger/modal) -> ![](https://i.imgur.com/ON9e1D4.png) +![](https://i.imgur.com/ON9e1D4.png) ## Channel + [Detects channels being added or removed](/Trigger/channel) -> ![](https://cdn.discordapp.com/attachments/957286111250624552/1105138748414492772/channel-trigger.gif) +![](https://cdn.discordapp.com/attachments/957286111250624552/1105138748414492772/channel-trigger.gif) ## Role + [Triggers on role assignment](/Trigger/roleaddremove) -> ![](https://cdn.discordapp.com/attachments/957286111250624552/1105149730553614486/voice-trigger.gif) +![](https://cdn.discordapp.com/attachments/957286111250624552/1105149730553614486/voice-trigger.gif) ## Timed event + [Executes the code at a set time](/Trigger/time) -> ![](https://cdn.discordapp.com/attachments/1105135517055594508/1105141376083038240/image.png) +![](https://cdn.discordapp.com/attachments/1105135517055594508/1105141376083038240/image.png) ## Interval + [Repeatedly executes the code once in a specific time (e.g every hour)](/Trigger/time) -> ![](https://cdn.discordapp.com/attachments/1100128432395927765/1116042286812385370/image.png) +![](https://cdn.discordapp.com/attachments/1100128432395927765/1116042286812385370/image.png) ## Voice + [Fires of when user leaves or joins a voice channel](/Trigger/voicecondecon) -> ![](https://cdn.discordapp.com/attachments/957286111250624552/1105149730553614486/voice-trigger.gif) +![](https://cdn.discordapp.com/attachments/957286111250624552/1105149730553614486/voice-trigger.gif) ## Server boost + [Detects people boosting the server](/Trigger/serverboost) -> ![](https://cdn.discordapp.com/attachments/957286111250624552/1105142982270783587/image.png) +![](https://cdn.discordapp.com/attachments/957286111250624552/1105142982270783587/image.png) ## Join or Leave + [Triggers when someone joins or leaves the server](/Trigger/joinorleave) -> ![](https://cdn.discordapp.com/attachments/957286111250624552/1105143572510027806/image.png) +![](https://cdn.discordapp.com/attachments/957286111250624552/1105143572510027806/image.png) ## On Upvote + [Triggers when someone upvote in Top.gg.](/Trigger/upvote) ## User Command + [Triggers when user command is selected from the user's context menu.](/Trigger/app_cmd_user) ## Message Command + [Triggers when user command is selected from the message's context menu.](/Trigger/app_cmd_message) ## Library + [A code which can be imported in any other code](/Trigger/library) -> ![](https://cdn.discordapp.com/attachments/957286111250624552/1105145858581872750/image.png) -> -> In this example $includeLibrary has been used to import a library called `tools` which contained a custom $embedMsg function. +![](https://cdn.discordapp.com/attachments/957286111250624552/1105145858581872750/image.png) + +In this example $includeLibrary has been used to import a library called `tools` which contained a custom $embedMsg function. diff --git a/content/docs/Trigger/meta.json b/content/docs/Trigger/meta.json index 40ebb413..9a774247 100644 --- a/content/docs/Trigger/meta.json +++ b/content/docs/Trigger/meta.json @@ -1,6 +1,4 @@ { - "title": "Trigger Types", - "pages": [ - "..." - ] + "title": "Trigger Types", + "pages": ["..."] } diff --git a/content/docs/Trigger/word.mdx b/content/docs/Trigger/word.mdx index be59cde3..6eeb04a5 100644 --- a/content/docs/Trigger/word.mdx +++ b/content/docs/Trigger/word.mdx @@ -93,7 +93,7 @@ Let's say we want our [Hug command](#using-parameters) to trigger on: ?hug, ?abr #### How can we do that? We can do that with the following trigger: -```bash +```php ?hug|?abrazo|?étreinte ``` diff --git a/content/docs/Tutorials/meta.json b/content/docs/Tutorials/meta.json index f998652e..1e185dd6 100644 --- a/content/docs/Tutorials/meta.json +++ b/content/docs/Tutorials/meta.json @@ -1,6 +1,4 @@ { - "title": "Tutorials & Examples", - "pages": [ - "..." - ] + "title": "Tutorials & Examples", + "pages": ["..."] } diff --git a/content/docs/index.mdx b/content/docs/index.mdx index 3b88facf..abab6cdd 100644 --- a/content/docs/index.mdx +++ b/content/docs/index.mdx @@ -10,14 +10,14 @@ It is highly recommended not to skip this guide, or to read only parts of it. ## What is Custom Command Bot? -Same as it sounds - Custom Command (CC) is a bot that allows you to create fully customizable commands. +Custom Command (CC) is a bot that allows you to create fully customizable commands. It is a perfect tool for both experienced developers and complete beginners looking for a quick and easy command system. ## Examples -![Word Trigger](/images/guide/get-started/get-started-word.png) -![Slash Command](/images/guide/get-started/get-started-slash-cmd.png) -![Join Event Trigger](/images/guide/get-started/get-started-join-event.png) +![Word Trigger](/images/guide/getting-started/word.png) +![Slash Command](/images/guide/getting-started/slash-cmd.png) +![Join Event Trigger](/images/guide/getting-started/join-event.png) ## Do I have to know coding? diff --git a/content/docs/meta.json b/content/docs/meta.json index 8c01c85a..e91bb504 100644 --- a/content/docs/meta.json +++ b/content/docs/meta.json @@ -1,14 +1,12 @@ { - "pages": [ - "---Guide---", - "index", - "...Guide", - "Trigger", - "Tutorials", - "Other", - "Changelogs", - "(functions)", - "Contribution_Info", - "Legal" - ] + "pages": [ + "Guide", + "Trigger", + "Tutorials", + "Other", + "Changelogs", + "(functions)", + "Contribution_Info", + "Legal" + ] } diff --git a/lib/layout.shared.tsx b/lib/layout.shared.tsx index 2f7f4a99..f730c24c 100644 --- a/lib/layout.shared.tsx +++ b/lib/layout.shared.tsx @@ -1,29 +1,39 @@ -import type { BaseLayoutProps } from 'fumadocs-ui/layouts/shared'; -import { appName, gitConfig } from './shared'; +import type { BaseLayoutProps } from "fumadocs-ui/layouts/shared"; +import { appName, gitConfig } from "./shared"; export function baseOptions(): BaseLayoutProps { - return { - nav: { - title: ( - <> - - {appName} - - ), - }, - // Carried over from the old VuePress navbar. - links: [ - { - text: 'Dashboard', - url: 'https://ccommandbot.com/dashboard', - external: true, - }, - { - text: 'Discord', - url: 'https://discord.gg/ZFQNZA4Ekz', - external: true, - }, - ], - githubUrl: `https://github.com/${gitConfig.user}/${gitConfig.repo}`, - }; + return { + nav: { + title: ( + <> + + {appName} + + ), + }, + links: [ + { + text: "Dashboard", + url: "https://ccommandbot.com/dashboard", + external: true, + }, + { + text: "Invite The Bot", + url: "https://ccommandbot.com/add", + external: true, + }, + { + text: "Join Support Server", + url: "https://ccommandbot.com/join", + external: true, + }, + ], + githubUrl: `https://github.com/${gitConfig.user}/${gitConfig.repo}`, + }; } diff --git a/lib/shared.ts b/lib/shared.ts index b24ee42d..c69bc5e8 100644 --- a/lib/shared.ts +++ b/lib/shared.ts @@ -1,15 +1,13 @@ -export const appName = 'Custom Command'; +export const appName = "Custom Command"; export const appDescription = "Custom Command Bot's Documentation"; -export const siteUrl = 'https://doc.ccommandbot.com'; +export const siteUrl = "https://doc.ccommandbot.com"; export const socialImage = `${siteUrl}/bot-profile.png`; -// Docs are mounted at the site root so URLs match the previous VuePress site -// (e.g. /Member/setNickname), keeping every existing inbound link alive. -export const docsRoute = '/'; -export const docsContentRoute = '/llms.mdx'; +export const docsRoute = "/"; +export const docsContentRoute = "/llms.mdx"; export const gitConfig = { - user: 'raspdevpy', - repo: 'ccdoc', - branch: 'main', + user: "raspdevpy", + repo: "ccdoc", + branch: "main", }; diff --git a/lib/source.ts b/lib/source.ts index 3097a378..166ec8b1 100644 --- a/lib/source.ts +++ b/lib/source.ts @@ -1,41 +1,44 @@ -import { loader } from 'fumadocs-core/source'; -import { docsContentRoute, docsRoute } from './shared'; -import { defineDocs } from 'fumadocs-mdx/macro'; -import { metaSchema, pageSchema } from 'fumadocs-core/source/schema'; +import { loader } from "fumadocs-core/source"; +import { docsContentRoute, docsRoute } from "./shared"; +import { defineDocs } from "fumadocs-mdx/macro"; +import { metaSchema, pageSchema } from "fumadocs-core/source/schema"; const docs = defineDocs({ - dir: 'content/docs', - docs: { - schema: pageSchema, - postprocess: { - includeProcessedMarkdown: true, + dir: "content/docs", + docs: { + schema: pageSchema, + postprocess: { + includeProcessedMarkdown: true, + }, + }, + meta: { + schema: metaSchema, }, - }, - meta: { - schema: metaSchema, - }, }); -// See https://fumadocs.dev/docs/headless/source-api for more info export const source = loader({ - baseUrl: docsRoute, - source: docs.toFumadocsSource(), - plugins: [], + baseUrl: docsRoute, + source: docs.toFumadocsSource(), + plugins: [], }); -export function getPageMarkdownUrl(page: (typeof source)['$inferPage']) { - const segments = [...page.slugs, 'content.md']; +export function getPageMarkdownUrl(page: (typeof source)["$inferPage"]) { + const segments = [...page.slugs, "content.md"]; - return { - segments, - url: '/' + [page.locale, ...docsContentRoute.split('/'), ...segments].filter(Boolean).join('/'), - }; + return { + segments, + url: + "/" + + [page.locale, ...docsContentRoute.split("/"), ...segments] + .filter(Boolean) + .join("/"), + }; } -export async function getLLMText(page: (typeof source)['$inferPage']) { - const processed = await page.data.getText('processed'); +export async function getLLMText(page: (typeof source)["$inferPage"]) { + const processed = await page.data.getText("processed"); - return `# ${page.data.title} (${page.url}) + return `# ${page.data.title} (${page.url}) ${processed}`; } diff --git a/old b/old deleted file mode 160000 index c77a347f..00000000 --- a/old +++ /dev/null @@ -1 +0,0 @@ -Subproject commit c77a347f975674b5599726c57d5e4ae07d2fd17b diff --git a/package.json b/package.json index 24c3c1f2..3f9a9b2c 100644 --- a/package.json +++ b/package.json @@ -7,9 +7,12 @@ "dev": "next dev -p 8080", "build": "next build && node scripts/build-docs-pages.mjs", "start": "serve out -l 8080", - "types:check": "next typegen && tsc --noEmit" + "types:check": "next typegen && tsc --noEmit", + "wpack:dev": "next dev -p 8080 --webpack", + "wpack:build": "next build --webpack && node scripts/build-docs-pages.mjs" }, "dependencies": { + "@fumadocs/base-ui": "^16.14.0", "@skyra/discord-components-core": "^4.0.2", "@skyra/discord-components-react": "^4.0.2", "cnfast": "^0.1.0", @@ -20,7 +23,8 @@ "next": "16.2.12", "next-themes": "^0.4.6", "react": "^19.2.8", - "react-dom": "^19.2.8" + "react-dom": "^19.2.8", + "shiki": "^4.4.1" }, "devDependencies": { "@tailwindcss/postcss": "^4.3.3", @@ -31,6 +35,7 @@ "@types/react-dom": "^19.2.3", "cheerio": "^1.2.0", "postcss": "^8.5.24", + "react-medium-image-zoom": "^5.4.8", "serve": "^14.2.6", "tailwindcss": "^4.3.3", "typescript": "^6.0.3" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 67ed202e..73e1ef9a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -8,6 +8,9 @@ importers: .: dependencies: + '@fumadocs/base-ui': + specifier: ^16.14.0 + version: 16.14.0(@types/mdx@2.0.14)(@types/react@19.2.18)(fumadocs-core@16.14.0(@mdx-js/mdx@3.1.1(supports-color@7.2.0))(@types/estree-jsx@1.0.5)(@types/hast@3.0.5)(@types/mdast@4.0.4)(@types/react@19.2.18)(lucide-react@1.28.0(react@19.2.8))(next@16.2.12(react-dom@19.2.8(react@19.2.8))(react@19.2.8))(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(supports-color@7.2.0)(zod@4.4.3))(next@16.2.12(react-dom@19.2.8(react@19.2.8))(react@19.2.8))(react-dom@19.2.8(react@19.2.8))(react@19.2.8)(tailwindcss@4.3.3) '@skyra/discord-components-core': specifier: ^4.0.2 version: 4.0.2 @@ -41,6 +44,9 @@ importers: react-dom: specifier: ^19.2.8 version: 19.2.8(react@19.2.8) + shiki: + specifier: ^4.4.1 + version: 4.4.1 devDependencies: '@tailwindcss/postcss': specifier: ^4.3.3 @@ -66,6 +72,9 @@ importers: postcss: specifier: ^8.5.24 version: 8.5.25 + react-medium-image-zoom: + specifier: ^5.4.8 + version: 5.4.8(react-dom@19.2.8(react@19.2.8))(react@19.2.8) serve: specifier: ^14.2.6 version: 14.2.6(supports-color@7.2.0) @@ -1789,6 +1798,12 @@ packages: peerDependencies: react: ^19.2.8 + react-medium-image-zoom@5.4.8: + resolution: {integrity: sha512-72CIldEUaPejjcaDOYIeDsGlWzNKpmxyKgiPi1LBCkWCIGHDLlA2KTeo2uNtmN/m72Y3k/2uWDfon9SDiPbHaA==} + peerDependencies: + react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 + react-remove-scroll-bar@2.3.8: resolution: {integrity: sha512-9r+yi9+mgU33AKcj6IbT9oRCO78WriSj6t/cF8DWBZJ9aOGPOTEDvdUDz1FwKim7QXWwmHqtdHnRJfhAxEG46Q==} engines: {node: '>=10'} @@ -3968,6 +3983,11 @@ snapshots: react: 19.2.8 scheduler: 0.27.0 + react-medium-image-zoom@5.4.8(react-dom@19.2.8(react@19.2.8))(react@19.2.8): + dependencies: + react: 19.2.8 + react-dom: 19.2.8(react@19.2.8) + react-remove-scroll-bar@2.3.8(@types/react@19.2.18)(react@19.2.8): dependencies: react: 19.2.8 diff --git a/public/images/guide/get-started/get-started-join-event.png b/public/images/guide/getting-started/join-event.png similarity index 100% rename from public/images/guide/get-started/get-started-join-event.png rename to public/images/guide/getting-started/join-event.png diff --git a/public/images/guide/get-started/get-started-slash-cmd.png b/public/images/guide/getting-started/slash-cmd.png similarity index 100% rename from public/images/guide/get-started/get-started-slash-cmd.png rename to public/images/guide/getting-started/slash-cmd.png diff --git a/public/images/guide/get-started/get-started-word.png b/public/images/guide/getting-started/word.png similarity index 100% rename from public/images/guide/get-started/get-started-word.png rename to public/images/guide/getting-started/word.png diff --git a/scripts/build-docs-pages.mjs b/scripts/build-docs-pages.mjs index 52610a8b..a97442a2 100644 --- a/scripts/build-docs-pages.mjs +++ b/scripts/build-docs-pages.mjs @@ -6,72 +6,83 @@ * * Runs after `next build`, reading the exported HTML in `out/`. */ -import fs from 'node:fs'; -import path from 'node:path'; -import * as cheerio from 'cheerio'; +import fs from "node:fs"; +import path from "node:path"; +import * as cheerio from "cheerio"; -const OUT = path.join(process.cwd(), 'out'); -const CONTENT = path.join(process.cwd(), 'content/docs'); +const OUT = path.join(process.cwd(), "out"); +const CONTENT = path.join(process.cwd(), "content/docs"); /** difficulty labels were never treated as tags */ const NOT_A_TAG = /Easy|Difficult|Read Below|Medium|Bugged/i; function walk(dir, test, found = []) { - for (const entry of fs.readdirSync(dir, { withFileTypes: true })) { - const full = path.join(dir, entry.name); - if (entry.isDirectory()) walk(full, test, found); - else if (test(entry.name)) found.push(full); - } - return found; + for (const entry of fs.readdirSync(dir, { withFileTypes: true })) { + const full = path.join(dir, entry.name); + if (entry.isDirectory()) walk(full, test, found); + else if (test(entry.name)) found.push(full); + } + return found; } /** route -> source .mdx, so tags can be read off the original Badge props */ const sources = new Map(); -for (const file of walk(CONTENT, (n) => n.endsWith('.mdx'))) { - const route = - '/' + - path - .relative(CONTENT, file) - .replace(/\.mdx$/, '') - .replace(/^\(functions\)[/\\]/, '') - .split(path.sep) - .join('/'); - sources.set(route === '/index' ? '/' : route, file); +for (const file of walk(CONTENT, (n) => n.endsWith(".mdx"))) { + const route = + "/" + + path + .relative(CONTENT, file) + .replace(/\.mdx$/, "") + .replace(/^\(functions\)[/\\]/, "") + .split(path.sep) + .join("/"); + sources.set(route === "/index" ? "/" : route, file); } function metaFor(route) { - const file = sources.get(route); - if (!file) return { title: null, tags: [] }; + const file = sources.get(route); + if (!file) return { title: null, tags: [] }; - const raw = fs.readFileSync(file, 'utf8'); - const title = raw.match(/^title:\s*(.*)$/m)?.[1]?.trim().replace(/^"|"$/g, '') ?? null; + const raw = fs.readFileSync(file, "utf8"); + const title = + raw + .match(/^title:\s*(.*)$/m)?.[1] + ?.trim() + .replace(/^"|"$/g, "") ?? null; - const tags = []; - for (const [, text] of raw.matchAll(/]*\btext="([^"]*)"/g)) { - if (text.length > 1 && !NOT_A_TAG.test(text)) tags.push(text); - } - // the old plugin also indexed the bare function name - if (title?.startsWith('$')) tags.push(title.slice(1)); + const tags = []; + for (const [, text] of raw.matchAll(/]*\btext="([^"]*)"/g)) { + if (text.length > 1 && !NOT_A_TAG.test(text)) tags.push(text); + } + // the old plugin also indexed the bare function name + if (title?.startsWith("$")) tags.push(title.slice(1)); - return { title, tags }; + return { title, tags }; } const pages = []; -for (const file of walk(OUT, (n) => n.endsWith('.html'))) { - if (file.includes(`${path.sep}_next${path.sep}`)) continue; +for (const file of walk(OUT, (n) => n.endsWith(".html"))) { + if (file.includes(`${path.sep}_next${path.sep}`)) continue; - const rel = path.relative(OUT, file).replace(/\.html$/, '').split(path.sep).join('/'); - if (rel === '404' || rel === '_not-found') continue; - const route = rel === 'index' ? '/' : '/' + rel; + const rel = path + .relative(OUT, file) + .replace(/\.html$/, "") + .split(path.sep) + .join("/"); + if (rel === "404" || rel === "_not-found") continue; + const route = rel === "index" ? "/" : "/" + rel; - const $ = cheerio.load(fs.readFileSync(file, 'utf8')); - const content = $('.prose').first().html(); - if (content === null) continue; + const $ = cheerio.load(fs.readFileSync(file, "utf8")); + const content = $(".prose").first().html(); + if (content === null) continue; - const { title, tags } = metaFor(route); - pages.push({ title, path: route, content, tags }); + const { title, tags } = metaFor(route); + pages.push({ title, path: route, content, tags }); } pages.sort((a, b) => a.path.localeCompare(b.path)); -fs.writeFileSync(path.join(OUT, 'docs-pages.json'), JSON.stringify(pages, null, 2)); +fs.writeFileSync( + path.join(OUT, "docs-pages.json"), + JSON.stringify(pages, null, 2), +); console.log(`[docs-pages] wrote ${pages.length} pages to out/docs-pages.json`); diff --git a/source.config.ts b/source.config.ts index f080fc81..15b0e591 100644 --- a/source.config.ts +++ b/source.config.ts @@ -1,44 +1,38 @@ -import { defineConfig } from 'fumadocs-mdx/config'; -import { rehypeCodeDefaultOptions } from 'fumadocs-core/mdx-plugins'; -import type { ShikiTransformer } from 'shiki'; -import { remarkCooldowns } from './lib/remark/cooldowns'; -import { remarkFunctionLinks } from './lib/remark/function-links'; -import { remarkCachedImages } from './lib/remark/images'; +import { defineConfig } from "fumadocs-mdx/config"; +import { rehypeCodeDefaultOptions } from "fumadocs-core/mdx-plugins"; +import type { ShikiTransformer } from "shiki"; +import { remarkCooldowns } from "./lib/remark/cooldowns"; +import { remarkFunctionLinks } from "./lib/remark/function-links"; +import { remarkCachedImages } from "./lib/remark/images"; const transformerLineNumbers: ShikiTransformer = { - name: 'shiki-transformer-line-numbers', - pre(node) { - node.properties['data-line-numbers'] = ''; - }, + name: "shiki-transformer-line-numbers", + pre(node) { + node.properties["data-line-numbers"] = ""; + }, }; export default defineConfig({ - mdxOptions: { - // prepended so the generated cooldown headings are picked up by Fumadocs' - // own table-of-contents plugin, which runs later in the chain - remarkPlugins: (v) => [remarkCooldowns, remarkFunctionLinks, remarkCachedImages, ...v], + mdxOptions: { + remarkPlugins: (v) => [ + remarkCooldowns, + remarkFunctionLinks, + remarkCachedImages, + ...v, + ], - // The docs link to a lot of Discord CDN attachments, many of them long - // dead. Fetching each one at build time to measure it fails the build and - // matches nothing the old VuePress site did — remote images stayed plain - // tags there too. - remarkImageOptions: { - external: false, - onError: 'ignore', - }, + remarkImageOptions: { + external: false, + onError: "ignore", + }, - rehypeCodeOptions: { - ...rehypeCodeDefaultOptions, - themes: { light: 'github-light', dark: 'github-dark' }, - // ```discord blocks show raw command input, not a real language. VuePress' - // Prism silently fell back to plain text; Shiki throws instead. - langAlias: { - discord: 'text', - }, - transformers: [ - ...(rehypeCodeDefaultOptions.transformers ?? []), - transformerLineNumbers, - ], + rehypeCodeOptions: { + ...rehypeCodeDefaultOptions, + themes: { light: "github-light", dark: "github-dark" }, + transformers: [ + ...(rehypeCodeDefaultOptions.transformers ?? []), + transformerLineNumbers, + ], + }, }, - }, -}); \ No newline at end of file +}); diff --git a/styles/image-zoom.css b/styles/image-zoom.css new file mode 100644 index 00000000..23e0e96b --- /dev/null +++ b/styles/image-zoom.css @@ -0,0 +1,77 @@ +[data-rmiz] { + display: block; + position: relative; +} + +[data-rmiz-ghost] { + pointer-events: none; + position: absolute; +} + +[data-rmiz-btn-zoom], +[data-rmiz-btn-unzoom] { + display: none; +} + +[data-rmiz-content='found'] img { + cursor: zoom-in; +} + +[data-rmiz-modal][open] { + width: 100vw /* fallback */; + width: 100dvw; + + height: 100vh /* fallback */; + height: 100dvh; + + background-color: transparent; + max-width: none; + max-height: none; + margin: 0; + padding: 0; + position: fixed; + overflow: hidden; +} + +[data-rmiz-modal]:focus-visible { + outline: none; +} + +[data-rmiz-modal-overlay] { + transition: background-color 0.3s; + position: absolute; + inset: 0; +} + +[data-rmiz-modal-overlay='visible'] { + background-color: var(--color-fd-background); +} + +[data-rmiz-modal-overlay='hidden'] { + background-color: transparent; +} + +[data-rmiz-modal-content] { + width: 100%; + height: 100%; + position: relative; +} + +[data-rmiz-modal]::backdrop { + display: none; +} + +[data-rmiz-modal-img] { + cursor: zoom-out; + image-rendering: high-quality; + transform-origin: 0 0; + transition: transform 0.3s; + position: absolute; +} + +@media (prefers-reduced-motion: reduce) { + [data-rmiz-modal-overlay], + [data-rmiz-modal-img] { + transition-duration: 0.01ms !important; + } +}