File tree Expand file tree Collapse file tree 1 file changed +1
-38
lines changed Expand file tree Collapse file tree 1 file changed +1
-38
lines changed Original file line number Diff line number Diff line change @@ -160,44 +160,7 @@ private void UpdateDiscordChannel()
160
160
if ( _discordChannel == null ) PrintWarning ( $ "Discord channel with name '{ _config . DiscordBot . ChannelName } ' not found") ;
161
161
else Puts ( $ "Connected to discord channel: '{ _discordChannel . name } ' ({ _discordChannel . id } )") ;
162
162
}
163
-
164
- /*
165
- private void UpdateDiscordUsers()
166
- {
167
- if (_client?.DiscordServer == null)
168
- {
169
- PrintWarning("Users wasn't update cause Discord didn't connected");
170
- return;
171
- }
172
-
173
- if (_client.DiscordServer.roles?.Any() != true)
174
- {
175
- PrintWarning("Users wasn't update cause no roles found on server");
176
- return;
177
- }
178
-
179
- if (_client.DiscordServer.members?.Any() != true)
180
- {
181
- PrintWarning("Users wasn't update cause no members on server");
182
- return;
183
- }
184
-
185
- var role = _client.DiscordServer.roles.FirstOrDefault(x => x.name.Equals(_config.DiscordLoggerRoleName, StringComparison.InvariantCultureIgnoreCase));
186
- if(role == null)
187
- {
188
- PrintWarning($"Users wasn't update cause role '{_config.DiscordLoggerRoleName}' didn't found on server");
189
- return;
190
- }
191
-
192
- var users = _client.DiscordServer.members.Where(x => x.roles.Contains(role.id)).ToList();
193
- if (!users.Any()) PrintWarning($"No users found with role: {_config.DiscordLoggerRoleName}");
194
- else
195
- {
196
- _discordChannels = new List<Channel>();
197
- users[0].user.CreateDM(_client, channel => _discordChannels.Add(channel));
198
- }
199
- }
200
- */
163
+
201
164
#endif
202
165
#endregion
203
166
You can’t perform that action at this time.
0 commit comments