How to make a consent-based Discord member country map

Updated · 6 min read

Country Map lets members voluntarily share one country choice for a private, aggregate-only view. It is not location tracking: the module does not infer location, show individual pins, or identify members in the map.

Start free

Start free. Pro is $9.99/month.

Before you start

  1. Voluntary country choices, not location tracking

    Country Map is a Free module with one member-selected country code per server. It is not a tool for finding where a member lives: it never derives a country from an IP address, Discord profile, or messages, and it does not create a member-name directory, member-level export, or country history.

    Start by selecting Country Map on the bot’s Modules tab. If you add it to an existing bot, use the normal regenerate workflow, then invite and start the bot in a server you manage. Explain that participation is optional: members can choose a two-letter ISO country code or ZZ for unknown or prefer not to say.

  2. Enable the per-server setting and invite /countrymap set

    Open Country Map Settings, choose the intended server, turn on Enable country choices, and save. New and existing servers start with choices off, so /countrymap set and /countrymap view remain unavailable until that per-server setting is saved.

    A member who wants to participate runs /countrymap set country:SE consent:true, replacing SE with their chosen code. Consent must be true or the module rejects the save. Running the command again updates that member’s one saved choice for this server; it does not add a history.

  3. Set the visibility threshold and read the private aggregate map

    Set Minimum choices per visible country from 3 through 20; the default is 3. A non-ZZ country below the minimum is omitted from markers and listed country totals, then included only in the hidden total. ZZ is tracked as an unknown total rather than a visible country marker.

    Run /countrymap view, optionally with page:1, to receive a private PNG map and aggregate country totals. It never renders user IDs or suppressed country codes. Marker placement is an approximate country location and marker size represents a qualifying country total, not an individual member location or pin.

  4. Remove a choice, clear a server, and plan for leavers

    A member can run /countrymap remove to delete their own choice. Removal continues to work while Enable country choices is off as long as Country Map remains selected for the bot and server. Saving a new country and viewing the aggregate are paused while the per-server setting is off.

    A server manager with Manage Server can permanently delete every saved choice for that server with /countrymap clear confirm:true. That does not affect another server. Choices persist after a member leaves until they are removed or cleared, so set that expectation before inviting participation.

Frequently asked questions

Does the bot detect IP addresses or location?

No. A member explicitly chooses and consents to a country code. The module does not use IP lookup, profile inference, or message analysis.

Does it show individual member pins?

No. /countrymap view returns a private aggregate PNG map. Its markers represent qualifying country totals, not individual member locations or personal pins.

Why is a country hidden from the map?

A non-ZZ country is hidden until its saved choice count meets the server minimum. Managers can set that threshold from 3 through 20; it defaults to 3.

Can a member remove their choice?

Yes. /countrymap remove deletes the caller’s own saved choice, including while new choices and views are disabled for the server.

Who can clear the saved records?

A member with Manage Server can clear all saved choices for that server with /countrymap clear confirm:true. Clearing does not affect other servers.

Ready to configure your bot?

Start free

Start free. Pro is $9.99/month.