> For the complete documentation index, see [llms.txt](https://neiizun.gitbook.io/lightdrop/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://neiizun.gitbook.io/lightdrop/usage/use-filters.md).

# Use filters

Filter are a way to disable behaviors of commands. They are executed before commands, if the filter's condition is true, the command won't be executed.

```java
JDA jda = JDABuilder.createDefault("your token").build();
        
new LightDrop().hook(jda)
    .map(new MyCommand())
    .filter(context -> context.getMessage().getContentRaw().contains("Hello"));
```

![Result of filter](/files/-MfuciRbMDrnksYuTiow)
