> For the complete documentation index, see [llms.txt](https://guide.bocto.octopeeps.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guide.bocto.octopeeps.com/plugins/guard/guard-features/users-with-transparent-pfps.md).

# Users With Transparent PFPs

This feature evaluates the user's PFP and blocks the message if the ratio of the transparent and opaque pixels doesn't matchs the tolerance.

## <mark style="color:$primary;">Scam Mechanics.</mark>

Before we start, just look at this message by **Mr. Diamond**, who is the server admin:

<figure><img src="https://3820815315-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnX757myueIMa0YXG4HJl%2Fuploads%2FC4FpQVJDcc67gt0bDtgj%2Fimage.png?alt=media&amp;token=34674452-2a33-4dc7-876f-2548675c5f6a" alt=""><figcaption></figcaption></figure>

Did you notice anything that looks suspicious to you in this message? Probably not. <mark style="color:red;">And this is a problem!</mark> Because there are actually two messages from two different users!

In **Discord,** users can set up transparent PNG images for avatars, as well as use emojis instead of letters in their display names. And this is how the user profile can look as a result:

<figure><img src="https://3820815315-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnX757myueIMa0YXG4HJl%2Fuploads%2FH92Ucj6sDIcYhFKSw0wo%2Fimage.png?alt=media&amp;token=7d7ad9f3-2382-4125-8a9c-267befb97a62" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3820815315-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnX757myueIMa0YXG4HJl%2Fuploads%2F0L1WHDvvdWPUmfEBfssG%2Fimage.png?alt=media&amp;token=efca0f36-c30a-4399-95de-b4cbf60a5e8a" alt=""><figcaption></figcaption></figure>

But if we inspect the source code via the developer console in the browser, we'll see that there is indeed another one PFP here - that very transparent PNG our Mr. Smart Guy set earlier for his account!

<figure><img src="https://3820815315-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnX757myueIMa0YXG4HJl%2Fuploads%2FH03dxE91nlQqpbAOozCd%2Fimage.png?alt=media&amp;token=0e5f8390-75e9-4619-9b32-019704db346c" alt=""><figcaption></figcaption></figure>

It is still a very popular scammer's trick! People in **Discord** are, in most cases, careless and relaxed, and can easily lower their guard and mistake such a message for a message from an administrator or a member of the project team.

## <mark style="color:$primary;">Explanation of the Feature.</mark>

And this is where the <mark style="color:$success;">Users With Transparent PFPs</mark> feature comes into action! It analyzes the user avatar if its ratio of the transparent and opaque pixels matches the tolerance, and if it doesn't, it blocks the message:

<figure><img src="https://3820815315-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnX757myueIMa0YXG4HJl%2Fuploads%2Fk9sX6wsRypTRG3Acbu3n%2Fimage.png?alt=media&amp;token=9ccf48e0-4fbb-40ff-9486-5ee948e8e293" alt=""><figcaption></figcaption></figure>

Depending on your [Guard Settings](/plugins/guard/guard-settings.md), <mark style="color:purple;">**Bocto**</mark> can also post a detailed alert to the <mark style="color:yellow;">**#alerts**</mark> channel it created during the [setup on the server](/getting-started/setup-on-server.md):

<figure><img src="https://3820815315-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnX757myueIMa0YXG4HJl%2Fuploads%2Fq6faKYGMcw4e8zcEq5kx%2FScreen%20Shot%202025-11-10%20at%2020.02.57.png?alt=media&amp;token=fedc40dc-9f49-457f-9fc9-2898d25cece5" alt=""><figcaption></figcaption></figure>

Sometimes, scammers even try to set the transparent PNG image with a small, barely visible grey opaque dot to trick the weak filters. However, <mark style="color:purple;">**Bocto**</mark> uses a 40% tolerance barrier to determine and block scam PFPs, while allowing legit PFPs with some amount of transparent pixels.

<div><figure><img src="https://3820815315-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnX757myueIMa0YXG4HJl%2Fuploads%2Fji0OvA14CSKVFR2gyTTq%2Fimage.png?alt=media&amp;token=6d37f564-dba7-4cae-8c85-5de2b7f01f72" alt=""><figcaption></figcaption></figure> <figure><img src="https://3820815315-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnX757myueIMa0YXG4HJl%2Fuploads%2FPrrjTYXwCZT46fs00hfS%2Fimage.png?alt=media&amp;token=8be34e1c-a6d2-436e-9233-7c6266452ef7" alt=""><figcaption></figcaption></figure></div>

## <mark style="color:$primary;">PFP Types That This Feature Blocks.</mark>

Currently, the <mark style="color:$success;">Users With Transparent PFP</mark> feature only reacts to PFP transparency. In the future, we will also add an analysis algorithm for **Discord** themes' colors.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://guide.bocto.octopeeps.com/plugins/guard/guard-features/users-with-transparent-pfps.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
