Skip to content

SecurityLayer

Nill edited this page Dec 29, 2021 · 1 revision

The SecurityLayer is a BotLayer that does one and only one thing; it inspects each incoming Update, determines the originating user id, and updates the Context to reflect the appropriate User / IUser.

This allows the rest of the Telefrag framework to home off the User property of Context; tying Context to the user invoking the action, and allowing security on items such as Commands, Callbacks, Menus, etc. to occur seamlessly and without explicit boilerplate or ceremony.

Clone this wiki locally