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:
parent
24905c6f1b
commit
c9a9e9af02
1 changed files with 6 additions and 0 deletions
|
@ -22,6 +22,12 @@ pub async fn handle(ctx: &Context, thread: &GuildChannel) -> Result<()> {
|
||||||
.await
|
.await
|
||||||
.unwrap_or_default()
|
.unwrap_or_default()
|
||||||
!= "launcher-support"
|
!= "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"
|
!= "mod-support"
|
||||||
{
|
{
|
||||||
debug!("Not posting onboarding message to threads outside of support");
|
debug!("Not posting onboarding message to threads outside of support");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue