1.3.5 • Published 2 years ago

glenncord v1.3.5

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Glenncord

A framework extension of the discord.js library. This isn't for public use, so I don't have any intentions on creating a guide on how to use this framework.

Requirements

Installation

Node.js 16.9.0 or newer is required.

npm install glenncord

Initializing a new Glenncord Client.

const Glenncord = require('glenncord')
const { GatewayIntentBits } = require('discord.js')

const client = new Glenncord.Client({
	intents: [GatewayIntentBits.Guilds],
	credentials: {
		token: "YOURTOKENHERE",
		mongo: "YOURMONGOHERE"
	},
	directories: {
		commands: "./commands",
		events: "./events"
	}
})
client.start()

Creating a Glenncord ClientEvent.

const Glenncord = require('glenncord')

const event = new Glenncord.ClientEvent({
	event: "ready",
	on: function(client) {
		console.log(`Logged in as ${client.user.tag}.`)
	}
})

Creating a Glenncord ClientCommand.

const Glenncord = require('glenncord')
const { SlashCommandBuilder } = require('discord.js')

const command = new Glenncord.ClientCommand({
	data: new SlashCommandBuilder()
		.setName("ping")
		.setDescription("Get the client's response time."),
	run: function(interaction) {
		interaction.reply(`${interaction.client.ws.ping}ms`)
	}
})
1.3.5

2 years ago

1.3.4

2 years ago

1.3.3

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.9

2 years ago

1.2.8

2 years ago

1.2.7

2 years ago

1.2.6

2 years ago

1.2.5

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

14.3.0

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago