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.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 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: [{
|
||||
|
|
Loading…
Reference in a new issue