Temp fix to module crash on leaving a server
This commit is contained in:
@@ -152,7 +152,7 @@ namespace Discord.Modules
|
|||||||
public bool DisableServer(Server server)
|
public bool DisableServer(Server server)
|
||||||
{
|
{
|
||||||
if (server == null) throw new ArgumentNullException(nameof(server));
|
if (server == null) throw new ArgumentNullException(nameof(server));
|
||||||
if (!_useServerWhitelist) throw new InvalidOperationException("This module is not configured to use a server whitelist.");
|
//if (!_useServerWhitelist) throw new InvalidOperationException("This module is not configured to use a server whitelist.");
|
||||||
|
|
||||||
lock (this)
|
lock (this)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user