DPB2Class · Bots, plugins and tasks

Blacklist

Provides blacklist data and the operations listed below. Related types link to the values this API consumes or returns.

Namespace: DreamPoeBot.Loki.Bot

public static class Blacklist
Reference: DPB2 0.4.5.103Compare the DPB1 reference → Check signatures and usage notes separately; a matching type is not a compatibility guarantee.

Members and overloads

9 declared here

Add

MethodLink ↗
public static void Blacklist.Add(int id, TimeSpan duration, string reason = "")

Calls Add on Blacklist with id, duration, reason. This overload has no return value.

Return type: voidNo return value.

Parameters

id
Parameter type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies id.

duration
Parameter type: TimeSpanNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies duration.

reason
Parameter type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies reason. Optional; the default is shown in the signature.

AddWithNoLog

MethodLink ↗
public static void Blacklist.AddWithNoLog(int id, TimeSpan duration)

Adds with no log using the supplied arguments.

Return type: voidNo return value.

Parameters

id
Parameter type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies id.

duration
Parameter type: TimeSpanNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies duration.

Clear

MethodLink ↗
public static void Blacklist.Clear()

Calls Clear on Blacklist without arguments. This overload has no return value.

Return type: voidNo return value.

Contains

MethodLink ↗
public static bool Blacklist.Contains(NetworkObject entity)

Calls Contains on Blacklist with entity and returns bool. Open the return contract below before using the result.

Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

entity
Parameter type: NetworkObject

Specifies entity.

Returns: A Boolean result. The member description explains the condition being checked.

Contains

MethodLink ↗
public static bool Blacklist.Contains(int id)

Calls Contains on Blacklist with id and returns bool. Open the return contract below before using the result.

Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

id
Parameter type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies id.

Returns: A Boolean result. The member description explains the condition being checked.

Remove

MethodLink ↗
public static bool Blacklist.Remove(int id)

Calls Remove on Blacklist with id and returns bool. Open the return contract below before using the result.

Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

id
Parameter type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies id.

Returns: A Boolean result. The member description explains the condition being checked.

Reset

MethodLink ↗
public static void Blacklist.Reset()

Calls Reset on Blacklist without arguments. This overload has no return value.

Return type: voidNo return value.

Ids

PropertyLink ↗
public static IEnumerable<int> Blacklist.Ids { get; }

Gets the ids collection. Its element types are linked below.

Value type: IEnumerable<int>No current DPB page is linked for this built-in, external, generic or compatibility-only type.

DPB2 0.4.5.103 · Reference reviewed 2026-10-30. Descriptions use source summaries where available, otherwise concise signature-based descriptions. Examples illustrate usage; they are not a live-game test.