This commit is contained in:
Christopher Cookman 2023-04-27 11:39:33 -06:00
parent 6a40282c6d
commit 98d44f78a3
Signed by: ChrisChrome
GPG key ID: A023A26E42C33A42
3 changed files with 4 additions and 20 deletions

3
.gitignore vendored
View file

@ -133,4 +133,5 @@ config.json
config.json.old
config.json.disabled
test.js
test.js
embeds.json

View file

@ -1,14 +0,0 @@
{
"_comment": "This file is a work in progress, and is currently unused. To be used later :)",
"extInfo": {
"title": "LiteNet Phone Systems",
"description": "This is the full extension list for our community phone system!",
"color": 65535,
"fields": [
{
"name": "Extensions",
"value": "this gets replaced in code"
}
]
}
}

View file

@ -2,6 +2,7 @@
const config = require("./config.json");
const funcs = require("./funcs.js");
const colors = require("colors");
const embeds = require("./embeds.json")
// FreePBX GraphQL Client
const {
FreepbxGqlClient,
@ -582,11 +583,7 @@ dcClient.on('interactionCreate', async interaction => {
break;
case "button":
interaction.channel.send({
embeds: [{
"title": "Community Phone System Controls",
"description": "Use the buttons below to manage your extension.",
"color": null
}],
embeds: embeds.controls,
components: [{
type: 1,
components: [{