JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q28878F
  • License ISC

Discord Package for Build your Discord Bot for Easy

Package Exports

  • arbawi.dev
  • arbawi.dev/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (arbawi.dev) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Installation

Install with npm / yarn / pnpm

npm install arbawi.dev
yarn add arbawi.dev
pnpm add arbawi.dev

Button Pagination (SlashCommand Only)

const { ButtonPaginationInteraction } = require('arbawi.dev')
const { EmbedBuilder } = require('discord.js')

const One   = new EmbedBuilder() .setDescription('Embed #1')
const Two   = new EmbedBuilder() .setDescription('Embed #2')
const Three = new EmbedBuilder() .setDescription('Embed #3')
const Four  = new EmbedBuilder() .setDescription('Embed #4')
const Five  = new EmbedBuilder() .setDescription('Embed #5')

ButtonPaginationInteraction(Interaction, [One, Two, Three, Four, Five])

ProTax

const { ProTax } = require('arbawi.dev')

console.log(ProTax('150000'))
console.log(ProTax('15k'))
console.log(ProTax('15K'))

/* Result */

157895

Types

+ const { Types } = require('arbawi.dev')

- const { ApplicationCommandType } = require('discord.js')

---

+ Types.ApplicationCommandType.ChatInput

- ApplicationCommandType.ChatInput
  • ComponentsType
  • ChannelType
  • InteractionType
  • ButtonStyle
  • ApplicationCommandOptionType
  • ApplicationCommandType
  • ActivityType
  • ApplicationCommandPermissionType

Code Generator

const { CodeGenerator } = require('arbawi.dev')

console.log(CodeGenerator('5'))

Colors

const { Colors } = require('arbawi.dev')

# Colors.Default // The Default Color of the Embed
# Colors.DarkMode // The Color of Embed in Dark Mode
# Colors.LightMode // The Color of Embed in Light Mode
# Colors.Primary // The Color of Primary Button
# Colors.Success // Successfull Color (Green)
# Colors.Danger // Failed Color (Red)
# Colors.Warning // Warn Color (Yellow)

Join to Create

const { JoinToCreate } = require('arbawi.dev')

JoinToCreate(client, {
    ChannelId: '',
    CategoryId: ''
})

Auto Process Kill

const { ProcessKill } = require('arbawi.dev')

ProcessKill(client)

Progress Bar

const { ProgressBar } = require('arbawi.dev')

console.log(ProgressBar({ value: 10, max: 100, size: 17 }))

Short URL

const { ShortURL } = require('arbawi.dev');

ShortURL('https://npmjs.com').then((Res) => {
    console.log(Res)
})

// https://tinyurl.com/yhkhtsh8