DOCUMENTATION / PRIVATE TICKETS

A little help, right on time.

Create a private channel, collect details in a form, and keep the conversation in your community.

Permissions to request

Request ViewChannels, SendMessages, ManageChannels, and UseCommands. Private ticket channels use member-specific view/send overwrites. Other ordinary members cannot see them; the community owner retains access. Add any support staff explicitly.

Open a private ticket

Use application storage to keep the channel ID per member and avoid duplicate tickets. Close a ticket with channels.delete only after showing a clear close button and checking your support policy. The repository includes a complete example with a form and durable channel mapping.

JavaScript
const ticket = await bot.channels.create(interaction.communityId, {
  name: 'ticket-' + interaction.user.id.slice(0, 8),
  topic: 'Private support conversation',
  private: true,
  overwrites: [{ profileId: interaction.user.id, view: true, send: true }]
});
await bot.messages.send(ticket.id, 'We’re here to help. Tell us what happened.');
await interaction.reply('Your private ticket channel is ready.');