Skip to content

Commit

Permalink
feat: Exported setPushname function
Browse files Browse the repository at this point in the history
  • Loading branch information
edgardmessias committed Mar 4, 2023
1 parent 68db5fa commit 40eb9bf
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/whatsapp/functions/index.ts
Expand Up @@ -77,6 +77,7 @@ export * from './sendTextMsgToChat';
export * from './setArchive';
export * from './setGroup';
export * from './setPin';
export * from './setPushname';
export * from './status';
export * from './typeAttributeFromProtobuf';
export * from './unixTime';
Expand Down
30 changes: 30 additions & 0 deletions src/whatsapp/functions/setPushname.ts
@@ -0,0 +1,30 @@
/*!
* Copyright 2023 WPPConnect Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import { exportModule } from '../exportModule';

/**
* @whatsapp 135963 >= 2.2310.5
*/
export declare function setPushname(name: string): Promise<void>;

exportModule(
exports,
{
setPushname: 'setPushname',
},
(m) => m.setPushname && !m.setBrowserId
);

0 comments on commit 40eb9bf

Please sign in to comment.