1.3.5 • Published 3 years ago

glenncord v1.3.5

Weekly downloads
-
License
ISC
Repository
github
Last release
3 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

3 years ago

1.3.4

3 years ago

1.3.3

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.2.9

3 years ago

1.2.8

3 years ago

1.2.7

3 years ago

1.2.6

3 years ago

1.2.5

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

14.3.0

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago