Table of Contents

Method TryGetChange

Namespace
DisCatSharp.Entities
Assembly
DisCatSharp.dll

TryGetChange(string, out DiscordAuditLogChange)

Tries to get a change by key.

public bool TryGetChange(string key, out DiscordAuditLogChange change)

Parameters

key string

The Discord change key to look up.

change DiscordAuditLogChange

When this method returns, contains the matching change if one was found; otherwise null.

Returns

bool

true when a matching change exists; otherwise false.

Remarks

The lookup is ordinal and case-sensitive to match Discord's change key behavior exactly.