Skip to content

Commit f4cccab

Browse files
committed
Fix event typos
Pin active threads and unpin on archive
1 parent bcb65a4 commit f4cccab

3 files changed

Lines changed: 12 additions & 7 deletions

File tree

src/commands/admin/archive.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ export default class Archive extends Command {
4444
await channel.setArchived(true)
4545

4646
const starter = await channel.fetchStarterMessage()
47-
if (starter)
47+
if (starter) {
4848
await starter.react("✅")
49+
if (starter.pinned)
50+
await starter.unpin()
51+
}
4952
}
5053
}

src/commands/admin/thread.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,7 @@ export default class ThreadCommand extends Command {
4646
name,
4747
autoArchiveDuration: "MAX"
4848
})
49+
if (source.pinnable)
50+
await source.pin()
4951
}
5052
}

src/data/events.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@
742742
"end": "2021-11-24 11:00:00"
743743
},
744744
{
745-
"name": "Event Wishes \"Secretum Secretorum\"",
745+
"name": "Event Wish \"Secretum Secretorum\"",
746746
"type": "Banner",
747747
"link": "https://www.hoyolab.com/article/1432611",
748748
"img": "https://upload-os-bbs.hoyolab.com/upload/2021/11/19/1015537/21312fbcddc4c542a6db2a45870d1e1c_1739550797452216548.jpg",
@@ -751,7 +751,7 @@
751751
"reminder": "end"
752752
},
753753
{
754-
"name": "Event Wishes \"Born of Ocean Swell\"",
754+
"name": "Event Wish \"Born of Ocean Swell\"",
755755
"type": "Banner",
756756
"link": "https://www.hoyolab.com/article/1432612",
757757
"img": "https://upload-os-bbs.hoyolab.com/upload/2021/11/19/1015537/e6f83945ea2410bbeb2ad05ae88c0148_1358919906986922846.jpg",
@@ -867,7 +867,7 @@
867867
"end": "2022-01-05 11:00:00"
868868
},
869869
{
870-
"name": "Event Wishes \"The Transcendent One Returns\"",
870+
"name": "Event Wish \"The Transcendent One Returns\"",
871871
"type": "Banner",
872872
"link": "https://www.hoyolab.com/article/1823224",
873873
"img": "https://upload-os-bbs.hoyolab.com/upload/2021/12/29/1015537/ce08eefda22a1a4600a5ca3e850ef982_6338416199084824666.jpg",
@@ -876,7 +876,7 @@
876876
"reminder": "end"
877877
},
878878
{
879-
"name": "Event Wishes \"Invitation to Mundane Life\"",
879+
"name": "Event Wish \"Invitation to Mundane Life\"",
880880
"type": "Banner",
881881
"link": "https://www.hoyolab.com/article/1823212",
882882
"img": "https://upload-os-bbs.hoyolab.com/upload/2021/12/29/1015537/a843e23224ad57d6beea24f0a1865c30_5955783831679103604.jpg",
@@ -894,7 +894,7 @@
894894
"reminder": "end"
895895
},
896896
{
897-
"name": "Event Wishes \"Gentry of Hermitage\"",
897+
"name": "Event Wish \"Gentry of Hermitage\"",
898898
"type": "Banner",
899899
"link": "https://www.hoyolab.com/article/1823206",
900900
"img": "https://upload-os-bbs.hoyolab.com/upload/2021/12/29/1015537/41bdedbbd2e33ef43d0ebed543ce8da7_8859267799879114442.jpg",
@@ -903,7 +903,7 @@
903903
"reminder": "end"
904904
},
905905
{
906-
"name": "Event Wishes \"Adrift in the Harbor\"",
906+
"name": "Event Wish \"Adrift in the Harbor\"",
907907
"type": "Banner",
908908
"link": "https://www.hoyolab.com/article/1823218",
909909
"img": "https://upload-os-bbs.hoyolab.com/upload/2021/12/29/1015537/0e949cb2aeddf92a6fa53e0fdf6394cf_5388940225818973429.jpg",

0 commit comments

Comments
 (0)