revoltchat / backend

Monorepo for Revolt backend services.
https://developers.revolt.chat/api/
Other
1.1k stars 121 forks source link

bug: cannot fetch invites as bot #236

Closed toastxc closed 1 year ago

toastxc commented 1 year ago

What happened?

The route invites_fetch.rs in Delta checks if the request has come from a bot

   if user.bot.is_some() {
        return Err(Error::IsBot);
    }

However I don't think this is necessary, given that bots can't accept invites anyway.

The solution would be to simply remove this check.

toastxc commented 1 year ago

moved to PR #237