🚀 Blazing fast thread channels integration for all Discord.js versions

Overview

djs-threads 🚀

Blazing fast thread integration for all Discord.js versions 😃

THIS PROJECT IS ARCHIVED

this project is archived because Discord will close the API endpoint for API v7 and older versions

📚 Examples:

Creating threads

const Discord = require("discord.js")
const client = new Discord.Client()
const threads = require("djs-threads")
const threadEvents = threads.events
threads.login("YOUR TOKEN", 98303) //98303 is the intent number "98303" means all of the intents are allowed if you want to calculate your intent number you can use https://discord-intents-calculator.vercel.app/ this site to calculate your own bot's intent number
client.login("YOUR TOKEN")

client.on("ready", () => {
console.log("djs is ready")
})
threadEvents.on("ready", () => {
console.log("djs-threads is ready")
})

client.on("message", (msg) => {
   if(!msg.guild) return
   if(msg.author.id == "user_id") {
   new threads.ThreadManager(msg.channel.id).create({
   name: 'why-windows-is-better-than-arch',
   autoArchiveDuration: 60
   })
   }
})

💻 All Functions

//CREATING THREADS
new threads.ThreadManager("GUILD_TEXT_CHANNEL_ID").create(OPTIONS_OBJECT)

//JOINING THREADS
new threads.ThreadManager("GUILD_THREAD_CHANNEL_ID").join()

//LEAVING THREADS
new threads.ThreadManager("GUILD_THREAD_CHANNEL_ID").leave()

//REMOVING USERS FROM THREADS
new threads.ThreadManager("GUILD_THREAD_CHANNEL_ID").remove("USER_ID")

//ADDING USERS TO THREADS
new threads.ThreadManager("GUILD_THREAD_CHANNEL_ID").add("USER_ID")

//FETCHING THREAD MEMBER
const manager = new threads.ThreadManager("GUILD_THREAD_CHANNEL_ID")
const fetchMember = await manager.fetchMember("USER_ID")

//GETTING THREAD MEMBERS
const manager = new threads.ThreadManager("GUILD_THREAD_CHANNEL_ID")
const getMembers = await manager.members()

//GET THREADS IN A CHANNEL
const manager = new threads.ThreadManager("GUILD_TEXT_CHANNEL_ID")
const getMembers = await manager.getThreads({public: true, archived: true}) //this will return all archived and public threads in specified guild text channel						   
						   

💻 All Events

ready
threadCreate
threadDelete
threadUpdate
threadMemberUpdate
threadMembersUpdate

NOTE: THIS PACKAGE IS NOT FINISHED YET

Made with By ! SpongeBed#8181

You might also like...

An Betterdiscord plugin that gives the capability to the user send all discord stickers, expect wumpus default stickers.

allstickersexpectwumpusstickers An Betterdiscord plugin that gives the capability to the user send all discord stickers, expect wumpus default sticker

May 23, 2022

An efficient package, which syncs ratelimits of your Discord Bot on all Machines/Clusters.

An efficient package, which syncs ratelimits of your Discord Bot on all Machines/Clusters.

Discord-cross-ratelimit An efficient package, which syncs ratelimits of your Discord Bot on all Machines/Clusters. Why? When Sharding/Scaling your Bot

Oct 23, 2022

Discord Ban-All Bot

Discord Ban-All Bot

Ban-All Discord Bot 🇬🇧 This bot was created to ban all users from a server. 🇫🇷 Ce bot a été créé pour bannir tous les utilisateurs d'un serveurs.

Jan 6, 2022

A multipurpose bot, a clan bot, a all in one bot. The one bot u need for ur server originally made as Milrato discord Bot and by Tomato6966.

A multipurpose bot, a clan bot, a all in one bot. The one bot u need for ur server originally made as Milrato discord Bot and by Tomato6966.

Public Bot and Support Server! Invite the Public Version of this Bot so you don't need to host it by yourself or join my Discord server to get a custo

Dec 25, 2022

✨ the template for all my discord bots!

my discord bot template ⚠️ if you are using this template: please credit me, be it in a command, or in the readme file, i'm not picky. so essentially

Oct 22, 2022

⚡ Discord bot with economy, gambling, music, fun, moderation features based on discord.js v12

⚡ Discord bot with economy, gambling, music, fun, moderation features based on discord.js v12

Crucian Crucian is my discord bot with simple structure based on discord.js Click Here to invite Crucian to your server Author Crucian © Apoo Authored

Jul 26, 2021

A multipurpose Discord-bot created using discord.js.

Flame A multipurpose Discord-bot with music, economy, utils, and also auto-moderation. Flame is a powerfull, multipurpose and fully modular Discord-bo

Nov 14, 2021

An simple package to create an Activity in Discord Voice Channel using Discord.js

An simple package to create an Activity in Discord Voice Channel using Discord.js

discordjs-activity An simple package to create an Activity in Discord Voice Channel using Discord.js 📂 | Installation npm install discordjs-activity

Nov 15, 2022

best discord selfbot with discord.js-selfbot npm

Discord-Afk-Selfbot best discord selfbot with discord.js-selfbot npm How to start the Bot step by step : Step 1 === Open a CMD the npm init step 2 ==

Aug 18, 2022
Owner
SpongeBed
14 y.o software enthusiast living in Turkey. Currently working with svelte,csharp,javascript for 3 years. Trial Moderator at @CodAre-Development
SpongeBed
A web app for seeing your recent Twitch chat mentions and/or other tracked words amongst channels you follow.

Mentions A web app for seeing your recent Twitch chat mentions and/or other tracked words amongst channels you follow. Requirements NodeJS. Client ID

Ravenbtw 3 Dec 22, 2022
A NodeJS package for voice channel interactions on Revolt. This package lets you join voice channels, play music and more!

Revoice.js - A Voice Module for Revolt This package is still in developement and lacks many features. You still are able to play sound to a voice chan

ShadowLp174 13 Dec 25, 2022
Co-Pilot is a discord Bot designed to be the all-in-one, open-source Discord bot that handles all your server needs.

Welcome to Co-Pilot Bot repo! ?? ?? Co-Pilot (All-in-one Discord Bot) Co-Pilot is a discord Bot designed to be the all-in-one, open-source Discord bot

YMafalha 19 Nov 11, 2022
A simple & easy2use API for obtaining information about a discord user, discord bot or discord guild and their use for some purpose on websites!

discord-web-api A simple & easy2use API for obtaining information about a discord user, discord bot or discord guild and their use for some purpose on

InvalidLenni 2 Jun 28, 2022
Discord-Bot - You can use the discord bot codes that are updated in every video of the codes I use in the discord bot making series that I have published on my youtube channel.

Discord-Bot You can use the discord bot codes that are updated in every video of the codes I use in the discord bot making series that I have publishe

Umut Bayraktar 114 Jan 3, 2023
Discord Neura - a Discord bot framework built on discord.js

Discord Neura Description Discord Neura is a Discord bot framework built on discord.js. Features Command Handler, Arguments, Preconditions and Listene

Discord Neura 3 Mar 23, 2022
Gitlift Discord Bot is a discord bot which is listening Discord Messages to reply with user gitlift profile and total contributions.

Remoklify - Gitlift Discord Bot Gitlift Discord Bot is a discord bot which is listening Discord Messages to reply with user gitlift profile and total

Remoklify 3 Mar 20, 2022
A discord bot made using discord.js and discord-player

Musx A custom discord bot that can play music in your server ?? Add the bot to your server If you are looking for a music bot for your Discord server

Shashwat Singh 4 Mar 28, 2022
About Discord bot draft that does not contain ready-made commands, compatible with discord.js v14. Create your own discord bot with this command handler.

discordJS-V14 About Discord bot draft that does not contain ready-made commands, compatible with discord.js v14. Create your own discord bot with this

Umut Bayraktar 36 Dec 28, 2022
Flexible and easy Dash/HLS/DRM integration for HTML5 video.

This project is made possible with Plyr, Hls.js, Dash.js. Features ?? HLS and DASH playback ?? Multi quality supported ?? Drm with custom header suppo

Tuhin Kanti Pal 25 Nov 11, 2022