MCPcopy Create free account
hub / github.com/DiscordMessenger/dm / SetDMBlockDefault

Method SetDMBlockDefault

src/discord/SettingsManager.cpp:222–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220}
221
222void SettingsManager::SetDMBlockDefault(bool b)
223{
224 m_pSettingsMessage
225 ->GetFieldObjectDefault<Protobuf::ObjectMessage>(Settings::FIELD_PRIVACY)
226 ->GetFieldObjectDefault<Protobuf::ObjectVarInt>(Settings::Privacy::FIELD_DM_BLOCK_DEFAULT)
227 ->SetValue(b);
228 m_pSettingsMessage
229 ->GetFieldObjectDefault<Protobuf::ObjectMessage>(Settings::FIELD_PRIVACY)
230 ->GetFieldObjectDefault<Protobuf::ObjectBytes>(Settings::Privacy::FIELD_DM_BLOCK_GUILDS)
231 ->MarkDirty();
232}
233
234bool SettingsManager::GetDMBlockDefault()
235{

Callers 1

OptionsHandleCommandFunction · 0.80

Calls 2

MarkDirtyMethod · 0.80
SetValueMethod · 0.45

Tested by

no test coverage detected