Method GetGuildPreviewAsync
- Namespace
- DSharpPlus
- Assembly
- DSharpPlus.dll
GetGuildPreviewAsync(ulong)
Gets a guild preview
public Task<DiscordGuildPreview> GetGuildPreviewAsync(ulong id)
Parameters
id
ulongThe guild ID.
Returns
- Task<DiscordGuildPreview>
Exceptions
- NotFoundException
Thrown when the guild does not exist.
- BadRequestException
Thrown when an invalid parameter was provided.
- ServerErrorException
Thrown when Discord is unable to process the request.