npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

discord-forums

v2.0.3

Published

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.

Downloads

19

Readme

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.