> For the complete documentation index, see [llms.txt](https://docs.rainybot.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rainybot.dev/api/event.md).

# 类: Event

[(返回目录)](/api.md)

**继承自:** [EventAPI](/api/eventapi.md)

**子类:** [ActionEvent](/api/actionevent.md), [BotEvent](/api/botevent.md), [FriendEvent](/api/friendevent.md), [GroupEvent](/api/groupevent.md), [MessageEvent](/api/messageevent.md), [OtherClientEvent](/api/otherclientevent.md), [RequestEvent](/api/requestevent.md)

RainyBot的事件类，各种事件类型将直接或间接继承此类

## 方法

* [Dictionary](https://docs.godotengine.org/en/latest/classes/class_dictionary.html) **get\_metadata ( )**

获取实例中的元数据字典，仅当你知道自己在做什么时才使用

***

* void **set\_metadata (** [Dictionary](https://docs.godotengine.org/en/latest/classes/class_dictionary.html) dic **)**

使用指定字典覆盖实例中的元数据字典，仅当你知道自己在做什么时才使用

***
