support_onboard: update logic so it doesn't break any further

Signed-off-by: KTrain <69028025+KTrain5169@users.noreply.github.com>
This commit is contained in:
KTrain 2024-09-04 20:12:28 +10:00 committed by GitHub
parent 24905c6f1b
commit c9a9e9af02
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -22,6 +22,12 @@ pub async fn handle(ctx: &Context, thread: &GuildChannel) -> Result<()> {
.await
.unwrap_or_default()
!= "launcher-support"
&& thread
.parent_id
.ok_or_else(|| eyre!("Couldn't get parent ID from thread {}!", thread.name))?
.name(ctx)
.await
.unwrap_or_default()
!= "mod-support"
{
debug!("Not posting onboarding message to threads outside of support");