mc-cms-namelessmc/modules/Core/includes/endpoints/CreateReportEndpoint.php

91 lines
3.8 KiB
PHP
Raw Permalink Normal View History

Major API Changes (#1836) * continue updating api * Add Ingame Group Name dropdown if groups were sent by plugin * add validation function for params, add docblocks * revert call_user_func * wip * Modular API endpoints! WIP * Modular endpoints wip * fix some errors, get discord linking working again * Add panel page for API Endpoints * revert lastid rename * Add Endpoint descriptions * clean up some endpoints * wip * WIP (booleans, intval, mc integration work) * wip * discord secondary groups - WIP * Fix some group sync form things * add writable info to Server Compatibility. other fixes WIP * redo group sync page logic * fix some validation logic * Add group order to group list * Endpoint autoloader * dont need that variable * Add listUsers filters * Rework #1839 * Move banned/active filters to query * rename 'active' to 'verified' * Use boolval function * Use double negation instead of boolval * use bool cast * WIP syncing Secondary Groups * wip Discord Role Syncing * accidental html * wrong order * wip clean endpoints * Test/Fix all endpoints We are getting close to completion :confetti_balls: * Add missing translations * new class for Discord functions * Add check if hooks exists on upgrade * add missing admin permissions on install * add discord role in setGroup endpoint * #1876 - Add user language to userInfo endpoint * Store report dates using unix timestamp * Get language name via join in userInfo endpoint * Add default language to info endpoint * Uninstall instructions * Fix user logic for real * simpify discordBotRequest return value Co-authored-by: samerton <samerton@users.noreply.github.com> Co-authored-by: Derkades <robinslot@hotmail.nl>
2020-10-25 13:59:02 -07:00
<?php
/**
* @param string $reporter The NamelessMC ID of the user who is creating the report
* @param string $reported The NamelessMC ID of the user who is getting reported (optional, required if reported_username/reported_uid not provided)
Major API Changes (#1836) * continue updating api * Add Ingame Group Name dropdown if groups were sent by plugin * add validation function for params, add docblocks * revert call_user_func * wip * Modular API endpoints! WIP * Modular endpoints wip * fix some errors, get discord linking working again * Add panel page for API Endpoints * revert lastid rename * Add Endpoint descriptions * clean up some endpoints * wip * WIP (booleans, intval, mc integration work) * wip * discord secondary groups - WIP * Fix some group sync form things * add writable info to Server Compatibility. other fixes WIP * redo group sync page logic * fix some validation logic * Add group order to group list * Endpoint autoloader * dont need that variable * Add listUsers filters * Rework #1839 * Move banned/active filters to query * rename 'active' to 'verified' * Use boolval function * Use double negation instead of boolval * use bool cast * WIP syncing Secondary Groups * wip Discord Role Syncing * accidental html * wrong order * wip clean endpoints * Test/Fix all endpoints We are getting close to completion :confetti_balls: * Add missing translations * new class for Discord functions * Add check if hooks exists on upgrade * add missing admin permissions on install * add discord role in setGroup endpoint * #1876 - Add user language to userInfo endpoint * Store report dates using unix timestamp * Get language name via join in userInfo endpoint * Add default language to info endpoint * Uninstall instructions * Fix user logic for real * simpify discordBotRequest return value Co-authored-by: samerton <samerton@users.noreply.github.com> Co-authored-by: Derkades <robinslot@hotmail.nl>
2020-10-25 13:59:02 -07:00
* @param string $content The content of the report
* @param string $reported_username The username of the reported user (optional, required if reported not provided)
* @param string $reported_uid A unique ID for the reported user (optional, required if reported not provided)
* @param string $server_id A server ID the report is associated with
*
Major API Changes (#1836) * continue updating api * Add Ingame Group Name dropdown if groups were sent by plugin * add validation function for params, add docblocks * revert call_user_func * wip * Modular API endpoints! WIP * Modular endpoints wip * fix some errors, get discord linking working again * Add panel page for API Endpoints * revert lastid rename * Add Endpoint descriptions * clean up some endpoints * wip * WIP (booleans, intval, mc integration work) * wip * discord secondary groups - WIP * Fix some group sync form things * add writable info to Server Compatibility. other fixes WIP * redo group sync page logic * fix some validation logic * Add group order to group list * Endpoint autoloader * dont need that variable * Add listUsers filters * Rework #1839 * Move banned/active filters to query * rename 'active' to 'verified' * Use boolval function * Use double negation instead of boolval * use bool cast * WIP syncing Secondary Groups * wip Discord Role Syncing * accidental html * wrong order * wip clean endpoints * Test/Fix all endpoints We are getting close to completion :confetti_balls: * Add missing translations * new class for Discord functions * Add check if hooks exists on upgrade * add missing admin permissions on install * add discord role in setGroup endpoint * #1876 - Add user language to userInfo endpoint * Store report dates using unix timestamp * Get language name via join in userInfo endpoint * Add default language to info endpoint * Uninstall instructions * Fix user logic for real * simpify discordBotRequest return value Co-authored-by: samerton <samerton@users.noreply.github.com> Co-authored-by: Derkades <robinslot@hotmail.nl>
2020-10-25 13:59:02 -07:00
* @return string JSON Array
*/
2022-01-15 11:48:52 -08:00
class CreateReportEndpoint extends KeyAuthEndpoint {
Major API Changes (#1836) * continue updating api * Add Ingame Group Name dropdown if groups were sent by plugin * add validation function for params, add docblocks * revert call_user_func * wip * Modular API endpoints! WIP * Modular endpoints wip * fix some errors, get discord linking working again * Add panel page for API Endpoints * revert lastid rename * Add Endpoint descriptions * clean up some endpoints * wip * WIP (booleans, intval, mc integration work) * wip * discord secondary groups - WIP * Fix some group sync form things * add writable info to Server Compatibility. other fixes WIP * redo group sync page logic * fix some validation logic * Add group order to group list * Endpoint autoloader * dont need that variable * Add listUsers filters * Rework #1839 * Move banned/active filters to query * rename 'active' to 'verified' * Use boolval function * Use double negation instead of boolval * use bool cast * WIP syncing Secondary Groups * wip Discord Role Syncing * accidental html * wrong order * wip clean endpoints * Test/Fix all endpoints We are getting close to completion :confetti_balls: * Add missing translations * new class for Discord functions * Add check if hooks exists on upgrade * add missing admin permissions on install * add discord role in setGroup endpoint * #1876 - Add user language to userInfo endpoint * Store report dates using unix timestamp * Get language name via join in userInfo endpoint * Add default language to info endpoint * Uninstall instructions * Fix user logic for real * simpify discordBotRequest return value Co-authored-by: samerton <samerton@users.noreply.github.com> Co-authored-by: Derkades <robinslot@hotmail.nl>
2020-10-25 13:59:02 -07:00
public function __construct() {
2022-01-15 12:06:46 -08:00
$this->_route = 'reports/create';
Major API Changes (#1836) * continue updating api * Add Ingame Group Name dropdown if groups were sent by plugin * add validation function for params, add docblocks * revert call_user_func * wip * Modular API endpoints! WIP * Modular endpoints wip * fix some errors, get discord linking working again * Add panel page for API Endpoints * revert lastid rename * Add Endpoint descriptions * clean up some endpoints * wip * WIP (booleans, intval, mc integration work) * wip * discord secondary groups - WIP * Fix some group sync form things * add writable info to Server Compatibility. other fixes WIP * redo group sync page logic * fix some validation logic * Add group order to group list * Endpoint autoloader * dont need that variable * Add listUsers filters * Rework #1839 * Move banned/active filters to query * rename 'active' to 'verified' * Use boolval function * Use double negation instead of boolval * use bool cast * WIP syncing Secondary Groups * wip Discord Role Syncing * accidental html * wrong order * wip clean endpoints * Test/Fix all endpoints We are getting close to completion :confetti_balls: * Add missing translations * new class for Discord functions * Add check if hooks exists on upgrade * add missing admin permissions on install * add discord role in setGroup endpoint * #1876 - Add user language to userInfo endpoint * Store report dates using unix timestamp * Get language name via join in userInfo endpoint * Add default language to info endpoint * Uninstall instructions * Fix user logic for real * simpify discordBotRequest return value Co-authored-by: samerton <samerton@users.noreply.github.com> Co-authored-by: Derkades <robinslot@hotmail.nl>
2020-10-25 13:59:02 -07:00
$this->_module = 'Core';
$this->_description = 'Create a report';
$this->_method = 'POST';
Major API Changes (#1836) * continue updating api * Add Ingame Group Name dropdown if groups were sent by plugin * add validation function for params, add docblocks * revert call_user_func * wip * Modular API endpoints! WIP * Modular endpoints wip * fix some errors, get discord linking working again * Add panel page for API Endpoints * revert lastid rename * Add Endpoint descriptions * clean up some endpoints * wip * WIP (booleans, intval, mc integration work) * wip * discord secondary groups - WIP * Fix some group sync form things * add writable info to Server Compatibility. other fixes WIP * redo group sync page logic * fix some validation logic * Add group order to group list * Endpoint autoloader * dont need that variable * Add listUsers filters * Rework #1839 * Move banned/active filters to query * rename 'active' to 'verified' * Use boolval function * Use double negation instead of boolval * use bool cast * WIP syncing Secondary Groups * wip Discord Role Syncing * accidental html * wrong order * wip clean endpoints * Test/Fix all endpoints We are getting close to completion :confetti_balls: * Add missing translations * new class for Discord functions * Add check if hooks exists on upgrade * add missing admin permissions on install * add discord role in setGroup endpoint * #1876 - Add user language to userInfo endpoint * Store report dates using unix timestamp * Get language name via join in userInfo endpoint * Add default language to info endpoint * Uninstall instructions * Fix user logic for real * simpify discordBotRequest return value Co-authored-by: samerton <samerton@users.noreply.github.com> Co-authored-by: Derkades <robinslot@hotmail.nl>
2020-10-25 13:59:02 -07:00
}
2022-01-15 15:18:05 -08:00
public function execute(Nameless2API $api): void {
$api->validateParams($_POST, ['reporter', 'content']);
// Ensure either reported OR reported_username AND reported_uid are provided
if (!$_POST['reported'] && !($_POST['reported_username'] && $_POST['reported_uid'])) {
$api->throwError(Nameless2API::ERROR_CANNOT_FIND_USER);
}
Major API Changes (#1836) * continue updating api * Add Ingame Group Name dropdown if groups were sent by plugin * add validation function for params, add docblocks * revert call_user_func * wip * Modular API endpoints! WIP * Modular endpoints wip * fix some errors, get discord linking working again * Add panel page for API Endpoints * revert lastid rename * Add Endpoint descriptions * clean up some endpoints * wip * WIP (booleans, intval, mc integration work) * wip * discord secondary groups - WIP * Fix some group sync form things * add writable info to Server Compatibility. other fixes WIP * redo group sync page logic * fix some validation logic * Add group order to group list * Endpoint autoloader * dont need that variable * Add listUsers filters * Rework #1839 * Move banned/active filters to query * rename 'active' to 'verified' * Use boolval function * Use double negation instead of boolval * use bool cast * WIP syncing Secondary Groups * wip Discord Role Syncing * accidental html * wrong order * wip clean endpoints * Test/Fix all endpoints We are getting close to completion :confetti_balls: * Add missing translations * new class for Discord functions * Add check if hooks exists on upgrade * add missing admin permissions on install * add discord role in setGroup endpoint * #1876 - Add user language to userInfo endpoint * Store report dates using unix timestamp * Get language name via join in userInfo endpoint * Add default language to info endpoint * Uninstall instructions * Fix user logic for real * simpify discordBotRequest return value Co-authored-by: samerton <samerton@users.noreply.github.com> Co-authored-by: Derkades <robinslot@hotmail.nl>
2020-10-25 13:59:02 -07:00
2020-12-27 14:42:47 +01:00
// Ensure content is correct length
if (strlen($_POST['content']) > 255) {
$api->throwError(CoreApiErrors::ERROR_REPORT_CONTENT_TOO_LONG);
2020-12-27 14:42:47 +01:00
}
// Ensure user reporting has website account, and has not been banned
2022-06-25 09:37:09 +02:00
$user_reporting = $api->getUser('id', $_POST['reporter']);
$user_reporting_data = $user_reporting->data();
Major API Changes (#1836) * continue updating api * Add Ingame Group Name dropdown if groups were sent by plugin * add validation function for params, add docblocks * revert call_user_func * wip * Modular API endpoints! WIP * Modular endpoints wip * fix some errors, get discord linking working again * Add panel page for API Endpoints * revert lastid rename * Add Endpoint descriptions * clean up some endpoints * wip * WIP (booleans, intval, mc integration work) * wip * discord secondary groups - WIP * Fix some group sync form things * add writable info to Server Compatibility. other fixes WIP * redo group sync page logic * fix some validation logic * Add group order to group list * Endpoint autoloader * dont need that variable * Add listUsers filters * Rework #1839 * Move banned/active filters to query * rename 'active' to 'verified' * Use boolval function * Use double negation instead of boolval * use bool cast * WIP syncing Secondary Groups * wip Discord Role Syncing * accidental html * wrong order * wip clean endpoints * Test/Fix all endpoints We are getting close to completion :confetti_balls: * Add missing translations * new class for Discord functions * Add check if hooks exists on upgrade * add missing admin permissions on install * add discord role in setGroup endpoint * #1876 - Add user language to userInfo endpoint * Store report dates using unix timestamp * Get language name via join in userInfo endpoint * Add default language to info endpoint * Uninstall instructions * Fix user logic for real * simpify discordBotRequest return value Co-authored-by: samerton <samerton@users.noreply.github.com> Co-authored-by: Derkades <robinslot@hotmail.nl>
2020-10-25 13:59:02 -07:00
if ($user_reporting_data->isbanned) {
$api->throwError(CoreApiErrors::ERROR_BANNED_FROM_WEBSITE);
2020-12-27 14:42:47 +01:00
}
Major API Changes (#1836) * continue updating api * Add Ingame Group Name dropdown if groups were sent by plugin * add validation function for params, add docblocks * revert call_user_func * wip * Modular API endpoints! WIP * Modular endpoints wip * fix some errors, get discord linking working again * Add panel page for API Endpoints * revert lastid rename * Add Endpoint descriptions * clean up some endpoints * wip * WIP (booleans, intval, mc integration work) * wip * discord secondary groups - WIP * Fix some group sync form things * add writable info to Server Compatibility. other fixes WIP * redo group sync page logic * fix some validation logic * Add group order to group list * Endpoint autoloader * dont need that variable * Add listUsers filters * Rework #1839 * Move banned/active filters to query * rename 'active' to 'verified' * Use boolval function * Use double negation instead of boolval * use bool cast * WIP syncing Secondary Groups * wip Discord Role Syncing * accidental html * wrong order * wip clean endpoints * Test/Fix all endpoints We are getting close to completion :confetti_balls: * Add missing translations * new class for Discord functions * Add check if hooks exists on upgrade * add missing admin permissions on install * add discord role in setGroup endpoint * #1876 - Add user language to userInfo endpoint * Store report dates using unix timestamp * Get language name via join in userInfo endpoint * Add default language to info endpoint * Uninstall instructions * Fix user logic for real * simpify discordBotRequest return value Co-authored-by: samerton <samerton@users.noreply.github.com> Co-authored-by: Derkades <robinslot@hotmail.nl>
2020-10-25 13:59:02 -07:00
2020-12-27 14:42:47 +01:00
// See if reported user exists
2022-05-01 23:22:19 -07:00
$user_reported_id = $api->getDb()->get('users', ['id', (int)$_POST['reported']]);
2021-02-21 16:42:24 -08:00
if (!$user_reported_id->count()) {
$user_reported_id = null;
2021-02-21 16:42:24 -08:00
} else {
$user_reported_id = $user_reported_id->first()->id;
2020-12-27 14:42:47 +01:00
}
Major API Changes (#1836) * continue updating api * Add Ingame Group Name dropdown if groups were sent by plugin * add validation function for params, add docblocks * revert call_user_func * wip * Modular API endpoints! WIP * Modular endpoints wip * fix some errors, get discord linking working again * Add panel page for API Endpoints * revert lastid rename * Add Endpoint descriptions * clean up some endpoints * wip * WIP (booleans, intval, mc integration work) * wip * discord secondary groups - WIP * Fix some group sync form things * add writable info to Server Compatibility. other fixes WIP * redo group sync page logic * fix some validation logic * Add group order to group list * Endpoint autoloader * dont need that variable * Add listUsers filters * Rework #1839 * Move banned/active filters to query * rename 'active' to 'verified' * Use boolval function * Use double negation instead of boolval * use bool cast * WIP syncing Secondary Groups * wip Discord Role Syncing * accidental html * wrong order * wip clean endpoints * Test/Fix all endpoints We are getting close to completion :confetti_balls: * Add missing translations * new class for Discord functions * Add check if hooks exists on upgrade * add missing admin permissions on install * add discord role in setGroup endpoint * #1876 - Add user language to userInfo endpoint * Store report dates using unix timestamp * Get language name via join in userInfo endpoint * Add default language to info endpoint * Uninstall instructions * Fix user logic for real * simpify discordBotRequest return value Co-authored-by: samerton <samerton@users.noreply.github.com> Co-authored-by: Derkades <robinslot@hotmail.nl>
2020-10-25 13:59:02 -07:00
if ($user_reporting_data->id == $user_reported_id) {
2022-05-25 11:00:34 +02:00
$api->throwError(CoreApiErrors::ERROR_CANNOT_REPORT_YOURSELF);
2020-12-27 14:42:47 +01:00
}
Major API Changes (#1836) * continue updating api * Add Ingame Group Name dropdown if groups were sent by plugin * add validation function for params, add docblocks * revert call_user_func * wip * Modular API endpoints! WIP * Modular endpoints wip * fix some errors, get discord linking working again * Add panel page for API Endpoints * revert lastid rename * Add Endpoint descriptions * clean up some endpoints * wip * WIP (booleans, intval, mc integration work) * wip * discord secondary groups - WIP * Fix some group sync form things * add writable info to Server Compatibility. other fixes WIP * redo group sync page logic * fix some validation logic * Add group order to group list * Endpoint autoloader * dont need that variable * Add listUsers filters * Rework #1839 * Move banned/active filters to query * rename 'active' to 'verified' * Use boolval function * Use double negation instead of boolval * use bool cast * WIP syncing Secondary Groups * wip Discord Role Syncing * accidental html * wrong order * wip clean endpoints * Test/Fix all endpoints We are getting close to completion :confetti_balls: * Add missing translations * new class for Discord functions * Add check if hooks exists on upgrade * add missing admin permissions on install * add discord role in setGroup endpoint * #1876 - Add user language to userInfo endpoint * Store report dates using unix timestamp * Get language name via join in userInfo endpoint * Add default language to info endpoint * Uninstall instructions * Fix user logic for real * simpify discordBotRequest return value Co-authored-by: samerton <samerton@users.noreply.github.com> Co-authored-by: Derkades <robinslot@hotmail.nl>
2020-10-25 13:59:02 -07:00
2020-12-27 14:42:47 +01:00
// Ensure user has not already reported the same player, and the report is open
2022-05-01 23:22:19 -07:00
$user_reports = $api->getDb()->get('reports', ['reporter_id', $user_reporting_data->id])->results();
foreach ($user_reports as $report) {
if ($report->status == 1) {
continue;
}
if ((
$report->reported_id != null && $report->reported_id == $user_reported_id)
2022-06-25 09:37:09 +02:00
|| (isset($_POST['reported_uid']) && $report->reported_uuid == $_POST['reported_uid'])
) {
$api->throwError(CoreApiErrors::ERROR_OPEN_REPORT_ALREADY);
}
2020-12-27 14:42:47 +01:00
}
Major API Changes (#1836) * continue updating api * Add Ingame Group Name dropdown if groups were sent by plugin * add validation function for params, add docblocks * revert call_user_func * wip * Modular API endpoints! WIP * Modular endpoints wip * fix some errors, get discord linking working again * Add panel page for API Endpoints * revert lastid rename * Add Endpoint descriptions * clean up some endpoints * wip * WIP (booleans, intval, mc integration work) * wip * discord secondary groups - WIP * Fix some group sync form things * add writable info to Server Compatibility. other fixes WIP * redo group sync page logic * fix some validation logic * Add group order to group list * Endpoint autoloader * dont need that variable * Add listUsers filters * Rework #1839 * Move banned/active filters to query * rename 'active' to 'verified' * Use boolval function * Use double negation instead of boolval * use bool cast * WIP syncing Secondary Groups * wip Discord Role Syncing * accidental html * wrong order * wip clean endpoints * Test/Fix all endpoints We are getting close to completion :confetti_balls: * Add missing translations * new class for Discord functions * Add check if hooks exists on upgrade * add missing admin permissions on install * add discord role in setGroup endpoint * #1876 - Add user language to userInfo endpoint * Store report dates using unix timestamp * Get language name via join in userInfo endpoint * Add default language to info endpoint * Uninstall instructions * Fix user logic for real * simpify discordBotRequest return value Co-authored-by: samerton <samerton@users.noreply.github.com> Co-authored-by: Derkades <robinslot@hotmail.nl>
2020-10-25 13:59:02 -07:00
2022-04-24 20:31:04 +02:00
$reported_user = new User($user_reported_id);
if ($reported_user->exists()) {
$integrationUser = $reported_user->getIntegration('Minecraft');
if ($integrationUser != null) {
$reported_uuid = $integrationUser->data()->identifier;
}
User Integrations systems (#2606) * Initial work for User Integrations systems * Convert a few endpoints to new user integration system * Finish minecraft part to new User Integration system * Fixes verify banner issue https://github.com/NamelessMC/Nameless/issues/2052 Fixes https://github.com/NamelessMC/Nameless/issues/2052 * Convert discord to new user integrations system * Update fields to show user integrations * Add user integrations to StaffCP user page / move over * Update UserInfo and Rename MinecraftVerify endpoint * Rework user listing endpoint * Password check never returns null * Add support for offline mode uuid * Fix documentation phpstan warnings * else if * remove die() * Revamp registration page * add integrations settings page * Convert authme & fix phpstan issues * refix settings page * Load uuid when user is loaded * Redirect user to complete required integrations * Fix translation for user connections page * Rework integrations registration in Register Endpoint Completes https://github.com/NamelessMC/Nameless/issues/2516 * make getIntegration ignore case sensitive * Update installer * Update upgrader script to convert users * Fix index for user integrations * Remove uuid from user data * Misc * Remove one unused query * Add event for integration linking, verify and unlink * Finish user transformer, Finish user integrations * Thx phpstan * Fix phpdocs * Fix user reports page * Remove validation banner * Change default field value * resolve samerton feedback * don't clean when inserting data * don't clean event data * remove more clean * increase reset_code length from 60 to 64 * pr13 confirmed * one more clean * Remove API verification setting * Register integrations edit permission * Resolve a few requested changes * Rework username and identifier validation * Add button to sync user integration * Fix Synchronisation text * Fix is verified term Co-authored-by: Robin <robinslot@hotmail.nl> Co-authored-by: Robin <robin+git@rkslot.nl>
2022-04-16 18:42:24 +02:00
}
Report::create($api->getLanguage(), $user_reporting, $reported_user, [
'type' => Report::ORIGIN_API,
'reporter_id' => $user_reporting_data->id,
'reported_id' => $user_reported_id,
2022-06-25 09:37:09 +02:00
'report_reason' => $_POST['content'],
'updated_by' => $user_reporting_data->id,
'reported_mcname' => $_POST['reported_username'] ?: $reported_user->getDisplayname(),
'reported_uuid' => $_POST['reported_uid'] ?: $reported_uuid ?? 'none',
'server_id' => $_POST['server_id'],
]);
2022-02-19 10:12:20 -08:00
$api->returnArray(['message' => $api->getLanguage()->get('api', 'report_created')], 201);
Major API Changes (#1836) * continue updating api * Add Ingame Group Name dropdown if groups were sent by plugin * add validation function for params, add docblocks * revert call_user_func * wip * Modular API endpoints! WIP * Modular endpoints wip * fix some errors, get discord linking working again * Add panel page for API Endpoints * revert lastid rename * Add Endpoint descriptions * clean up some endpoints * wip * WIP (booleans, intval, mc integration work) * wip * discord secondary groups - WIP * Fix some group sync form things * add writable info to Server Compatibility. other fixes WIP * redo group sync page logic * fix some validation logic * Add group order to group list * Endpoint autoloader * dont need that variable * Add listUsers filters * Rework #1839 * Move banned/active filters to query * rename 'active' to 'verified' * Use boolval function * Use double negation instead of boolval * use bool cast * WIP syncing Secondary Groups * wip Discord Role Syncing * accidental html * wrong order * wip clean endpoints * Test/Fix all endpoints We are getting close to completion :confetti_balls: * Add missing translations * new class for Discord functions * Add check if hooks exists on upgrade * add missing admin permissions on install * add discord role in setGroup endpoint * #1876 - Add user language to userInfo endpoint * Store report dates using unix timestamp * Get language name via join in userInfo endpoint * Add default language to info endpoint * Uninstall instructions * Fix user logic for real * simpify discordBotRequest return value Co-authored-by: samerton <samerton@users.noreply.github.com> Co-authored-by: Derkades <robinslot@hotmail.nl>
2020-10-25 13:59:02 -07:00
}
}