my_teams
is_in.c File Reference
#include <string.h>
#include "server.h"
Include dependency graph for is_in.c:

Functions

bool is_in_teams (const s_server_t *server, const char *user_uuid, const char *team_uuid)
 Check if a user is in a team. More...
 
bool is_in_channels (const s_server_t *server, const char *user_uuid, const char *channel_uuid)
 Check if a user is in a channel. More...
 
bool is_in_threads (const s_server_t *server, const char *user_uuid, const char *thread_uuid)
 Check if a user is in a thread. More...
 
bool is_logged (const s_server_t *server, const char *user_uuid)
 Check if a user is logged. More...
 

Function Documentation

◆ is_in_channels()

bool is_in_channels ( const s_server_t server,
const char *  user_uuid,
const char *  channel_uuid 
)

Check if a user is in a channel.

Parameters
serverThe server
user_uuidThe user UUID
channel_uuidThe channel UUID
Returns
true if the user is in the channel, false otherwise
Here is the call graph for this function:

◆ is_in_teams()

bool is_in_teams ( const s_server_t server,
const char *  user_uuid,
const char *  team_uuid 
)

Check if a user is in a team.

Parameters
serverThe server
user_uuidThe user UUID
team_uuidThe team UUID
Returns
true if the user is in the team, false otherwise
Here is the call graph for this function:

◆ is_in_threads()

bool is_in_threads ( const s_server_t server,
const char *  user_uuid,
const char *  thread_uuid 
)

Check if a user is in a thread.

Parameters
serverThe server
user_uuidThe user UUID
thread_uuidThe thread UUID
Returns
true if the user is in the thread, false otherwise
Here is the call graph for this function:

◆ is_logged()

bool is_logged ( const s_server_t server,
const char *  user_uuid 
)

Check if a user is logged.

Parameters
serverThe server
user_uuidThe user UUID
Returns
true if the user is logged, false otherwise
Here is the call graph for this function: