# Blocked Users on BOT

> To check the blocked users on the BOT, you should use the 'fetchBlocklist()' method of the provider. This method has the following signature:
>
> - **Canonical URL:** https://www.builderbot.app/en/providers/baileys/blocked-users
> - **Documentation Index:** https://www.builderbot.app/llms.txt
> - **Full Corpus:** https://www.builderbot.app/llms-full.txt

To check the blocked users on the BOT, you should use the 'fetchBlocklist()' method of the provider.
This method has the following signature:

```ts
(property) fetchBlocklist: () => Promise<string[]>
```

```ts (app.ts)
import { createBot, createProvider, createFlow, addKeyword, EVENTS } from '@builderbot/bot'
import { MemoryDB as Database } from '@builderbot/bot'
import { BaileysProvider as Provider } from '@builderbot/provider-baileys'
import { config } from 'dotenv'
config()

const PHONE_NUMBER = process.env.PHONE_NUMBER

const welcomeFlow = addKeyword<Provider, Database>(EVENTS.WELCOME)
    .addAnswer(`💡 Example *List Blocked Users on BOT:*`)
    .addAction(
        async (_, { provider, flowDynamic }) => {
            const blocked = await provider.vendor.fetchBlocklist()
            const result = blocked.map((id, index) => `id ${index + 1}: ${id}`).join('\n');
            await flowDynamic(`*Blocked:*\n${result}`)
        }
    )

const main = async () => {
    const adapterFlow = createFlow([welcomeFlow])

    const adapterProvider = createProvider(Provider, { usePairingCode: true, phoneNumber: PHONE_NUMBER })
    const adapterDB = new Database()

    const botResult = await createBot(
        {
            flow: adapterFlow,
            provider: adapterProvider,
            database: adapterDB,
        }
    )
}

main()

```

<img style= className="rounded-2xl bg-zinc-900 w-full shadow-md dark:ring-1 dark:ring-white/10" src="/assets/examples/blocked_users.png" alt="API Call Example" />

----
