Hmm
This commit is contained in:
parent
6a40282c6d
commit
98d44f78a3
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -133,4 +133,5 @@ config.json
|
||||||
config.json.old
|
config.json.old
|
||||||
config.json.disabled
|
config.json.disabled
|
||||||
|
|
||||||
test.js
|
test.js
|
||||||
|
embeds.json
|
14
embeds.json
14
embeds.json
|
@ -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"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
7
index.js
7
index.js
|
@ -2,6 +2,7 @@
|
||||||
const config = require("./config.json");
|
const config = require("./config.json");
|
||||||
const funcs = require("./funcs.js");
|
const funcs = require("./funcs.js");
|
||||||
const colors = require("colors");
|
const colors = require("colors");
|
||||||
|
const embeds = require("./embeds.json")
|
||||||
// FreePBX GraphQL Client
|
// FreePBX GraphQL Client
|
||||||
const {
|
const {
|
||||||
FreepbxGqlClient,
|
FreepbxGqlClient,
|
||||||
|
@ -582,11 +583,7 @@ dcClient.on('interactionCreate', async interaction => {
|
||||||
break;
|
break;
|
||||||
case "button":
|
case "button":
|
||||||
interaction.channel.send({
|
interaction.channel.send({
|
||||||
embeds: [{
|
embeds: embeds.controls,
|
||||||
"title": "Community Phone System Controls",
|
|
||||||
"description": "Use the buttons below to manage your extension.",
|
|
||||||
"color": null
|
|
||||||
}],
|
|
||||||
components: [{
|
components: [{
|
||||||
type: 1,
|
type: 1,
|
||||||
components: [{
|
components: [{
|
||||||
|
|
Loading…
Reference in a new issue