arbawi.dev
v0.0.30
Published
Discord Package for Build your Discord Bot for Easy
Downloads
10
Maintainers
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