add SEND_MESSAGES permission check finally

This commit is contained in:
ouwou 2022-08-07 19:56:01 -04:00
parent 91527fbd0d
commit 1c38671356

View File

@ -222,6 +222,7 @@ Snowflake ChatWindow::GetActiveChannel() const {
bool ChatWindow::OnInputSubmit(ChatSubmitParams data) {
auto &discord = Abaddon::Get().GetDiscordClient();
if (!discord.HasSelfChannelPermission(m_active_channel, Permission::SEND_MESSAGES)) return false;
int nitro_restriction = BaseAttachmentSizeLimit;
const auto nitro = discord.GetUserData().PremiumType;