Move ChatSettings commands to their own file (#4116)

* Move ChatSettings commands to their own file

* reformat error message strings

* move ChatCommands together in CommandController.cpp

* Allow CommandContext to be provided for builtin functions

using variants MEGADANK

* add missing include

* rename to ComandFunctionVariants

also include some move magic & const reffing
This commit is contained in:
pajlada
2022-11-06 13:07:54 +01:00
committed by GitHub
parent ac7baf4073
commit c6a162c7ff
6 changed files with 526 additions and 469 deletions
@@ -0,0 +1,20 @@
#pragma once
#include "common/Channel.hpp"
#include "providers/twitch/TwitchChannel.hpp"
#include <QStringList>
namespace chatterino {
struct CommandContext {
QStringList words;
// Can be null
ChannelPtr channel;
// Can be null if `channel` is null or if `channel` is not a Twitch channel
TwitchChannel *twitchChannel;
};
} // namespace chatterino