import Whop from '@whop/sdk';
const client = new Whop({
apiKey: process.env['WHOP_API_KEY'], // This is the default and can be omitted
});
const message = await client.messages.delete('id');
console.log(message);truePermanently delete a message from an experience chat, DM, or group chat channel. Only the message author or a channel admin can delete a message.
Required permissions:
chat:message:createimport Whop from '@whop/sdk';
const client = new Whop({
apiKey: process.env['WHOP_API_KEY'], // This is the default and can be omitted
});
const message = await client.messages.delete('id');
console.log(message);trueA company API key, company scoped JWT, app API key, or user OAuth token. You must prepend your key/token with the word 'Bearer', which will look like Bearer ***************************
The unique identifier of the message to delete.
A successful response
Represents true or false values.
Was this page helpful?