MCPcopy Create free account
hub / github.com/codebymitch/TitanBot / handleRefresh

Function handleRefresh

src/handlers/loggingButtons.js:89–102  ·  view source on GitHub ↗
(interaction)

Source from the content-addressed store, hash-verified

87};
88
89async function handleRefresh(interaction) {
90 if (isCategoriesView(interaction)) {
91 const { embed, components } = await buildLoggingCategoriesView(interaction, interaction.client);
92 return interaction.update({ embeds: [embed], components, content: null });
93 }
94
95 if (isFilterView(interaction)) {
96 const { embed, components } = await buildLoggingFilterView(interaction, interaction.client);
97 return interaction.update({ embeds: [embed], components, content: null });
98 }
99
100 const { embed, components } = await buildLoggingDashboardView(interaction, interaction.client);
101 await interaction.update({ embeds: [embed], components, content: null });
102}
103
104async function handleBackToMain(interaction) {
105 const { embed, components } = await buildLoggingDashboardView(interaction, interaction.client);

Callers 1

executeFunction · 0.85

Calls 5

isCategoriesViewFunction · 0.90
isFilterViewFunction · 0.90
buildLoggingFilterViewFunction · 0.90

Tested by

no test coverage detected