NAME
Discord::Client::Model::Guild - guild snapshots and REST operations
SYNOPSIS
# Fetch this server's channels as resource snapshots.
my $channels = $guild->channels;
DESCRIPTION
A guild snapshot. Inherits construction and data access from Discord::Client::Model. Member responses remain raw hashrefs; no automatic member scan occurs.
METHODS
name
Returns the guild name or undef when absent.
refresh
refresh(query_pairs) fetches current guild data and returns a Future containing a new Guild snapshot. Query pairs are optional; the existing snapshot does not change.
channels
Returns a Future containing an arrayref of Discord::Client::Model::Channel snapshots.
fetch_member
fetch_member(user_id) returns a Future containing a member hashref.
LICENSE
Apache License 2.0.