NAME

Discord::Client::Model::User - user snapshots and REST operations

SYNOPSIS

# Open a DM and send through the returned Channel snapshot.
my $work = $user->create_dm->then(sub {
    return $_[0]->send('Hello');
});

DESCRIPTION

A user snapshot. Inherits construction and data access from Discord::Client::Model.

METHODS

username

Returns the username or undef when absent.

mention

Returns the user mention string.

create_dm

Returns a Future containing a Discord::Client::Model::Channel snapshot.

refresh

Fetches current user data and returns a Future containing a new User snapshot. The existing snapshot does not change.

LICENSE

Apache License 2.0.