diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3988d36..c97c6e3 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,7 @@
+### 1.2.1 - 2022-09-25 - Refresh Items
+
+- Added a function to refresh items
+
### 1.2.0 - 2022-09-24 - Always Listening
- Added a toggle-able `Always Listening` mode
diff --git a/src/html/options.html b/src/html/options.html
index 66b5ee5..a1db5f6 100644
--- a/src/html/options.html
+++ b/src/html/options.html
@@ -60,6 +60,9 @@
Custom Voice Commands
+
+
+
diff --git a/src/ts/common.ts b/src/ts/common.ts
index 767fd46..0c85ee2 100644
--- a/src/ts/common.ts
+++ b/src/ts/common.ts
@@ -81,6 +81,7 @@ export const DEFAULT_COMMANDS: Record = {
postmaster: ['collect postmaster'],
startFarming: ['start farming mode'],
stopFarming: ['stop farming mode'],
+ refresh: ['refresh']
};
export type AlwaysListening = {
diff --git a/src/ts/voiceDim.ts b/src/ts/voiceDim.ts
index 9d159fa..23e77d2 100644
--- a/src/ts/voiceDim.ts
+++ b/src/ts/voiceDim.ts
@@ -171,6 +171,7 @@ const potentialActions: ActionFunction = {
store: handleStoreItem,
startFarming: handleStartFarmingMode,
stopFarming: handleStopFarmingMode,
+ refresh: handleRefresh,
maxPower: handleEquipMaxPower,
loadout: handleEquipLoadout,
postmaster: handleCollectPostmaster,
@@ -341,6 +342,13 @@ function handleStopFarmingMode() {
stopButton?.dispatchEvent(uiEvents.singleClick);
}
+function handleRefresh() {
+ infoLog('voice dim', 'Refreshng');
+
+ const refreshButton = document.querySelector('button[title="Refresh Destiny Data [R]"]');
+ refreshButton?.dispatchEvent(uiEvents.singleClick);
+}
+
async function handleEquipMaxPower() {
await openCurrentCharacterLoadoutMenu();
const xpath = "//span[contains(text(),'Max Power')]";