Actually remove the dev_buttons option
This commit is contained in:
parent
8796a5a0c4
commit
8ea9bb4d2a
3 changed files with 0 additions and 26 deletions
|
|
@ -17,10 +17,6 @@ public_key = ""
|
||||||
# as is imposed by Discord for the webhook URL)
|
# as is imposed by Discord for the webhook URL)
|
||||||
auth_redirect = "DOMAIN_HERE/discord/auth/callback"
|
auth_redirect = "DOMAIN_HERE/discord/auth/callback"
|
||||||
|
|
||||||
# Whether or not to include the "View Count" and "Show DB" buttons on the
|
|
||||||
# bracket messages
|
|
||||||
dev_buttons = false
|
|
||||||
|
|
||||||
[server]
|
[server]
|
||||||
# The location the server is hosted at, this is only for logging purposes
|
# The location the server is hosted at, this is only for logging purposes
|
||||||
host = ""
|
host = ""
|
||||||
|
|
|
||||||
|
|
@ -140,27 +140,6 @@ export default {
|
||||||
message.components.push(actionRow);
|
message.components.push(actionRow);
|
||||||
};
|
};
|
||||||
|
|
||||||
// Add the development-only buttons if needed
|
|
||||||
if (config.discord.dev_buttons) {
|
|
||||||
message.components.push({
|
|
||||||
type: 1,
|
|
||||||
components: [
|
|
||||||
{
|
|
||||||
type: 2,
|
|
||||||
style: 1,
|
|
||||||
label: `See Count`,
|
|
||||||
custom_id: `showCount`,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: 2,
|
|
||||||
style: 1,
|
|
||||||
label: `See Database Object`,
|
|
||||||
custom_id: `viewDB`,
|
|
||||||
}
|
|
||||||
]
|
|
||||||
});
|
|
||||||
};
|
|
||||||
|
|
||||||
let url = `${DISCORD_API_URI}/webhooks/${wh.id}/${wh.token}`;
|
let url = `${DISCORD_API_URI}/webhooks/${wh.id}/${wh.token}`;
|
||||||
let r = await axios.post(url, message, { params: { wait: true } });
|
let r = await axios.post(url, message, { params: { wait: true } });
|
||||||
db[gID].bracket.msg = r.data.id;
|
db[gID].bracket.msg = r.data.id;
|
||||||
|
|
|
||||||
1
src/types/config.d.ts
vendored
1
src/types/config.d.ts
vendored
|
|
@ -18,7 +18,6 @@ interface config {
|
||||||
secret: string;
|
secret: string;
|
||||||
public_key: string;
|
public_key: string;
|
||||||
auth_redirect: string;
|
auth_redirect: string;
|
||||||
dev_buttons: boolean;
|
|
||||||
};
|
};
|
||||||
server: {
|
server: {
|
||||||
host: string;
|
host: string;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue