Server Discovery
Apply, edit, or withdraw a guild discovery listing. Bots cannot join via discovery.
Guilds can apply to appear in Fluxer server discovery. That is a listing API. There is no bot method to join a guild from discovery.
Self-hosted instance discovery (Client.fromDiscovery) is a different topic: Discovery.
Check eligibility
javascript
const status = await guild.fetchDiscoveryStatus();
console.log(status.eligible, status.minMemberCount, status.application?.status);Apply
javascript
const application = await guild.applyForDiscovery({
description: 'A community for Fluxer bots and library chat.',
primaryCategoryId: 1,
keywords: ['bots', 'javascript'],
primaryLanguage: 'en',
});
await message.reply(`Discovery status: ${application.status}`);Options are camelCase (primaryCategoryId, keywords, primaryLanguage). Wire JSON uses category_type and custom_tags.
Edit or withdraw
javascript
await guild.editDiscoveryApplication({
description: 'Updated blurb.',
keywords: ['bots'],
});
await guild.withdrawDiscoveryApplication();Requires Manage Guild (or owner). Review and member-count rules are server-side; the SDK only submits the application.
Related
Invites (how people actually join), Discovery (point a Client at a self-hosted instance).