Commit 7a366483 authored by Mike Jones's avatar Mike Jones 🌶

Available methods for Emoji

parent 21472005
Pipeline #52 passed with stage
...@@ -5,6 +5,7 @@ use Types::Standard qw(Str Int); ...@@ -5,6 +5,7 @@ use Types::Standard qw(Str Int);
extends 'WebService::Mattermost::V4::API::Object'; extends 'WebService::Mattermost::V4::API::Object';
with qw( with qw(
WebService::Mattermost::V4::API::Object::Role::APIMethods
WebService::Mattermost::V4::API::Object::Role::Timestamps WebService::Mattermost::V4::API::Object::Role::Timestamps
WebService::Mattermost::V4::API::Object::Role::BelongingToUser WebService::Mattermost::V4::API::Object::Role::BelongingToUser
WebService::Mattermost::V4::API::Object::Role::ID WebService::Mattermost::V4::API::Object::Role::ID
...@@ -13,6 +14,20 @@ with qw( ...@@ -13,6 +14,20 @@ with qw(
################################################################################ ################################################################################
sub BUILD {
my $self = shift;
$self->api_resource_name('emoji');
$self->available_api_methods([ qw(
delete
get_image
) ]);
return 1;
}
################################################################################
1; 1;
__END__ __END__
...@@ -24,10 +39,33 @@ WebService::Mattermost::V4::API::Object::Emoji ...@@ -24,10 +39,33 @@ WebService::Mattermost::V4::API::Object::Emoji
Details a Mattermost Emoji object. Details a Mattermost Emoji object.
=head2 METHODS
See matching methods in C<WebService::Mattermost::V4::API::Resource::Emoji>
for full documentation.
ID parameters are not required:
my $response = $mattermost->api->emoji->get('ID-HERE')->item->get_image();
Is the same as:
my $response = $mattermost->api->emoji->get_image('ID-HERE');
=over 4
=item C<delete()>
=item C<get_image()>
=back
=head1 SEE ALSO =head1 SEE ALSO
=over 4 =over 4
=item C<WebService::Mattermost::V4::API::Object::Emoji>
=item C<WebService::Mattermost::V4::API::Object::Role::Timestamps> =item C<WebService::Mattermost::V4::API::Object::Role::Timestamps>
=item C<WebService::Mattermost::V4::API::Object::Role::BelongingToUser> =item C<WebService::Mattermost::V4::API::Object::Role::BelongingToUser>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment