New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

discord-forums

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

discord-forums

discord-forums is a lightweight, powerfull npm package that lets you make a forums channel for your server where members can discuss questions and ideas.

  • 2.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
increased by40%
Maintainers
1
Weekly downloads
 
Created
Source

Discord server

discord-forums 💬

discord-forums picture

discord-forums is a lightweight, powerfull npm package that lets you make a forums channel for your server where members can discuss questions and ideas.

Notice:

  • This package is built with Discord.js v14.9.0 (not tested on v13)
  • If you need help feel free to join our discord server to talk and get help.
  • If you encounter any of issues fell free to open an issue in our github repository.

📁 | Download & Update

You can download the package from npm:

npm install discord-forums

You can update to a newer version to receive updates using npm:

npm update discord-forums

📰 | Changelog

  • 9 April, 2023 (v2.0.1) - Added Exampes in /examples
  • 8 April, 2023 (v2.0.0) - Removed all previous methods. Added setupForums, createPost, and deletePost.
  • 8 April, 2023 (v2.0.0) - Switched to Discord's ForumChannel.
  • 8 July, 2022 (v1.2.0) - Added createForum and deleteForum methods.
  • 8 July, 2022 (v1.0.0) - Grand Launch.

✍ | Quick Example

// Import the package to access it's methods.
const Forums = require("discord-forums");

// Create the Forums channel.
const myForums = Forums.setupForums(guild, "355897081333940227", "My Forums", [...]);

// Create a new post in your forums channel.
Forums.createPost(myForums, "My Post", "This is my first post!");

⚡ | Setting Up

First things first, download the package.

npm install discord-forums@latest

then, include the module into your project.

const Forums = require("discord-forums");

🔧 | Methods

setupForums - Creates a new forums channel.

Forums.setupForums(<Discord.Guild>, <Discord.CategoryChannelResolvable|Discord.Snowflake>, <String>, <Array<Discord.OverwriteResolvable>>);

Returns: Promise<Discord.ForumChannel>

createPost - Creates a new post in a specific forum channel.

Forums.createPost(<Discord.ForumChannel>, <String>, <String>);

Returns: Promise<Discord.ThreadChannel>

deletePost - Deletes a forum post in a specific guild.

Forums.deletePost(<Discord.Guild>, <Discord.Snowflake>, <String>);

Returns: Promise<Discord.ThreadChannel>


📝 | Examples

Examples can be found in /examples


Types

Have fun and happy discussions! Made with ❤ by Abdelrahman.

Keywords

FAQs

Package last updated on 25 Apr 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc