Add the ability to link to the history site in a button
This commit is contained in:
parent
14df79139a
commit
60a83eef3d
4 changed files with 18 additions and 0 deletions
|
|
@ -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);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue