Emoji Locker/Configuration

Configuration

Every option in emojilocker.json5 and emojilocker-lang.json5.

Emoji Locker has two files in AthenaBot's configuration/ folder:

FileWhat it holds
emojilocker.json5License, panel style, persistent roles and permissions.
emojilocker-lang.json5Every panel and message.

Restart AthenaBot after editing either file.

emojilocker.json5

configuration/emojilocker.json5
{
  config: {
    LICENSE_KEY: "",
    panel: {
      type: "SELECT_MENU",
    },
    persistentRoles: [],
    permissions: {
      emojilocker_command: "admin",
      emojilocker_events: "admin",
    },
  },
}
OptionWhat it does
LICENSE_KEYYour Emoji Locker license key.
panel.typeHow the main menu shows its actions. SELECT_MENU for a dropdown, or BUTTON for three buttons.
persistentRolesRole IDs added to every emoji you lock, such as staff or booster roles.
permissions.emojilocker_commandPermission level that can run /emojilocker.
permissions.emojilocker_eventsPermission level that can use the panel's buttons and menus.

Permission levels come from configuration/permission.json5.

AthenaBot's own role is always added to locked emojis, so the bot can keep using them in its messages.

emojilocker-lang.json5

Messages

KeyShown when
processingWhile emojis are being updated. Uses %action%, %num% and %max%.
no_emojis_foundThere are no emojis to show.
select_at_least_oneConfirm is pressed with no emojis picked.
no_locked_emojisUnlock is opened with nothing locked.
no_roles_selectedLock is confirmed with no roles picked.
select_emoji_placeholderThe emoji menu's empty text.
select_role_placeholderThe role menu's empty text.

Panels

Each panel uses AthenaBot's components format. %primary_color% is your accent colour and %custom_emoji_<id>% any AthenaBot emoji.

PanelShown whenPlaceholders
emojilocker_panel/emojilocker is run.%guild%, %userMention%, %locked_count%, %unlocked_count%, %input_type%
lock_panelLock Emojis is opened.%emoji_count%, %role_count%
unlock_panelUnlock Emojis is opened.%emoji_count%
list_panelList Emojis is opened.
processing_panelEmojis are being updated.%message%
success_panelThe update finished.%message%
error_panelSomething went wrong.%message%
log_panelPosted in emojiLocker-logs.%action%, %emoji_count%, %roles%, %emoji_list%, %userMention%, %userId%