mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-26 23:44:19 +00:00
fix(ci): prettier format BackendClient.ts and i18n locales
This commit is contained in:
@@ -394,12 +394,23 @@ export class BackendClient extends BaseHttpClient {
|
||||
return this.delete(`/api/v1/platform/bots/${uuid}`);
|
||||
}
|
||||
|
||||
public getBotAdmins(botId: string): Promise<{ admins: Array<{ id: number; launcher_type: string; launcher_id: string }> }> {
|
||||
public getBotAdmins(
|
||||
botId: string,
|
||||
): Promise<{
|
||||
admins: Array<{ id: number; launcher_type: string; launcher_id: string }>;
|
||||
}> {
|
||||
return this.get(`/api/v1/platform/bots/${botId}/admins`);
|
||||
}
|
||||
|
||||
public addBotAdmin(botId: string, launcher_type: string, launcher_id: string): Promise<{ id: number }> {
|
||||
return this.post(`/api/v1/platform/bots/${botId}/admins`, { launcher_type, launcher_id });
|
||||
public addBotAdmin(
|
||||
botId: string,
|
||||
launcher_type: string,
|
||||
launcher_id: string,
|
||||
): Promise<{ id: number }> {
|
||||
return this.post(`/api/v1/platform/bots/${botId}/admins`, {
|
||||
launcher_type,
|
||||
launcher_id,
|
||||
});
|
||||
}
|
||||
|
||||
public deleteBotAdmin(botId: string, adminId: number): Promise<object> {
|
||||
|
||||
@@ -446,7 +446,8 @@ const enUS = {
|
||||
},
|
||||
admins: {
|
||||
title: 'Admins',
|
||||
description: 'Launchers (person/group IDs) that have admin privilege for this bot\'s commands',
|
||||
description:
|
||||
"Launchers (person/group IDs) that have admin privilege for this bot's commands",
|
||||
addAdmin: 'Add Admin',
|
||||
launcherType: 'Type',
|
||||
launcherId: 'ID',
|
||||
|
||||
Reference in New Issue
Block a user