generated from nhcarrigan/template
fix: allow myself free access
All checks were successful
Node.js CI / Lint and Test (push) Successful in 39s
All checks were successful
Node.js CI / Lint and Test (push) Successful in 39s
This commit is contained in:
parent
94380967f9
commit
71d1783b45
@ -16,7 +16,7 @@ import { getLocale } from "./getLocale.js";
|
|||||||
* Translates a message to the user's locale.
|
* Translates a message to the user's locale.
|
||||||
* @param interaction -- The interaction payload from Discord.
|
* @param interaction -- The interaction payload from Discord.
|
||||||
*/
|
*/
|
||||||
// eslint-disable-next-line max-statements, max-lines-per-function -- This is a complex function.
|
// eslint-disable-next-line max-statements, max-lines-per-function, complexity -- This is a complex function.
|
||||||
export const translate = async(
|
export const translate = async(
|
||||||
interaction: MessageContextMenuCommandInteraction,
|
interaction: MessageContextMenuCommandInteraction,
|
||||||
): Promise<void> => {
|
): Promise<void> => {
|
||||||
@ -27,7 +27,7 @@ export const translate = async(
|
|||||||
return entitlement.userId === interaction.user.id && entitlement.isActive();
|
return entitlement.userId === interaction.user.id && entitlement.isActive();
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!isEntitled) {
|
if (!isEntitled && interaction.user.id !== "465650873650118659") {
|
||||||
await interaction.editReply({
|
await interaction.editReply({
|
||||||
content: i18n("subscription-required", targetLocale),
|
content: i18n("subscription-required", targetLocale),
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user