# Announcements&#x20;

Here, you'll find key exports for managing weapons. These exports allow you to register and update weapons as needed.

***

## Type

```typescript
type Announcement = {
    id: number,
    title: string,
    content: string, // stringified JSON
    pinned: boolean,
    author: {
        identifier: string,
        name: string
    }
}
```

## Exports

### Search for an Announcement

```lua
exports['redutzu-mdt']:SearchAnnouncement(id: number) // AnnouncementType | null
```

### Create a new Announcement

```lua
exports['redutzu-mdt']:CreateAnnouncement({ title = 'Title', content = '[{..}]' }, authorSource) -- number (id)
```

### Update a Announcement

```lua
-- It returns a boolean (if it was successfully updated)
exports['redutzu-mdt']:UpdateAnnouncement(id, { title = 'New title' }) -- boolean
```

### Delete an Announcement&#x20;

```lua
-- It returns a boolean (if it was successfully deleted)
exports['redutzu-mdt']:DeleteAnnouncement(id: number) // boolean
```


---

# Agent Instructions: 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:

```
GET https://docs.redutzu.com/resources/redutzu-mdt/exports-events/server-exports/announcements.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
