0
0
Fork 0

Add the ability to link to the history site in a button

This commit is contained in:
Oliver-Akins 2021-09-30 01:36:22 -06:00
parent 14df79139a
commit 60a83eef3d
4 changed files with 18 additions and 0 deletions

View file

@ -8,6 +8,7 @@ import { deleteVoteButton } from "@/utils/components/buttons/delete_vote";
import { showUserVoteButton } from "@/utils/components/buttons/my_vote";
import { viewDBButton } from "@/utils/components/buttons/view_db";
import { countVotesButton } from "@/utils/components/buttons/count_votes";
import { historyLinkButton } from "@/utils/components/buttons/history_site";
export default {
method: `POST`, path: `/{guild_id}/bracket`,
@ -135,6 +136,10 @@ export default {
components: [],
};
if (extra_buttons.includes(`historyLink`)) {
actionRow.components.push(historyLinkButton(gID));
};
if (extra_buttons.includes(`DB`)) {
actionRow.components.push(viewDBButton);
};