forked from OpenGamers/abaddon
add SEND_MESSAGES permission check finally
This commit is contained in:
parent
91527fbd0d
commit
1c38671356
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user