nyxx-discord / nyxx_commands

A framework for easily creating slash commands and text commands for Discord using the nyxx library.
Apache License 2.0
13 stars 5 forks source link

Reorganise context interfaces & further split up context functionality #72

Closed abitofevrything closed 2 years ago

abitofevrything commented 2 years ago

Description

Reorganises context interfaces & further splits them into "data" interfaces which only expose data and "functionality" interfaces, which only expose methods. This allows us to be more specific about where and where not code is allowed to interact with contexts and where it should only read data.

This also unblocks #52 and allows for more new features in the future.

Updates converters & checks to only allow reading from contexts and not responding to them.

Type of change

Checklist: