Method GetTargetAsync
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.dll
GetTargetAsync(DiscordGuild)
Attempts to get the entity representing the target of this overwrite.
public ValueTask<SnowflakeObject?> GetTargetAsync(DiscordGuild guild)
Parameters
guild
DiscordGuildThe server to which the target belongs.
Returns
- ValueTask<SnowflakeObject>
Entity representing the target of this overwrite, or null if the target id is not set.