samuelsogbesan / leetbot

LeetCode Question Bot for Discord.
Apache License 2.0
1 stars 0 forks source link

Detect if Server is Onboarded #25

Open samuelsogbesan opened 3 years ago

samuelsogbesan commented 3 years ago

We need a utility that can detect if a server is fully onboarded, and if not then up to what part.

Pre-requisites to onboarding:

  1. The server has atleast 2 distinct voice channels.

A server is fully onboarded if:

  1. If it has assigned queue channel(s)
  2. If it has assigned interview channel(s)

The method, getOnboardingState(serverId) returns an integer between 0 and 2, where 0 indicates a fully onboarded server, 1 indicates a server that needs to assign queue channels, and 2 indicates a server that needs to assign interview channels.