Skip to content

Commit c6d3dce

Browse files
committed
chore(guide): temporary removal of guide command
1 parent 97dac39 commit c6d3dce

File tree

1 file changed

+19
-11
lines changed

1 file changed

+19
-11
lines changed

src/handling/handleApplicationCommand.ts

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -107,19 +107,27 @@ export async function handleApplicationCommand(
107107
}
108108

109109
case 'guide': {
110-
const castArgs = args as ArgumentsOf<typeof GuideCommand>;
111-
await algoliaResponse(
110+
// const castArgs = args as ArgumentsOf<typeof GuideCommand>;
111+
prepareResponse(
112112
res,
113-
process.env.DJS_GUIDE_ALGOLIA_APP!,
114-
process.env.DJS_GUIDE_ALGOLIA_KEY!,
115-
'discordjs',
116-
castArgs.query,
117-
EMOJI_ID_GUIDE,
118-
'guide',
119-
castArgs.mention,
120-
castArgs.hide,
121-
'guide',
113+
'The guide command is currently unavailable while we rework it to use the new guide page.',
114+
{
115+
ephemeral: true,
116+
},
122117
);
118+
119+
// await algoliaResponse(
120+
// res,
121+
// process.env.DJS_GUIDE_ALGOLIA_APP!,
122+
// process.env.DJS_GUIDE_ALGOLIA_KEY!,
123+
// 'discordjs',
124+
// castArgs.query,
125+
// EMOJI_ID_GUIDE,
126+
// 'guide',
127+
// castArgs.mention,
128+
// castArgs.hide,
129+
// 'guide',
130+
// );
123131
break;
124132
}
125133

0 commit comments

Comments
 (0)