Skip to content

Commit

Permalink
Create PollAnswerCount.php
Browse files Browse the repository at this point in the history
  • Loading branch information
valzargaming committed May 10, 2024
1 parent 7c8d072 commit a12d934
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions src/Discord/Parts/Channel/PollAnswerCount.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?php

/*
* This file is a part of the DiscordPHP project.
*
* Copyright (c) 2015-present David Cole <[email protected]>
*
* This file is subject to the MIT license that is bundled
* with this source code in the LICENSE.md file.
*/

namespace Discord\Parts\Channel;

use Carbon\Carbon;
//use Discord\Builders\PartBuilder;
use Discord\Parts\Part;

/**
*
*
* @link https://discord.com/developers/docs/resources/poll#poll-results-object-poll-answer-count-object-structure
*
*
*
* @property int $id The answer_id
* @property int $count The number of votes for this answer
* @property bool $me_voted Whether the current user voted for this answer
*/
class PollAnswerCount extends Part
{

/**
* {@inheritdoc}
*/
protected $fillable = [
'id',
'count',
'me_voted'
];

// TODO
}

0 comments on commit a12d934

Please sign in to comment.