-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
533d05b
commit 593240c
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
|
||
/* | ||
* This file is a part of the DiscordPHP project. | ||
* | ||
* Copyright (c) 2015-present David Cole <david.cole1340@gmail.com> | ||
* | ||
* 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; | ||
|
||
/** | ||
* Each of the answers available in the poll. The answer_id is a number that labels each answer. As an implementation detail, it currently starts at 1 for the first answer and goes up sequentially. We recommend against depending on this sequence. Currently, there is a maximum of 10 answers per poll. | ||
* | ||
* @link https://discord.com/developers/docs/resources/poll#poll-answer-object | ||
* | ||
* | ||
* | ||
* @property int $answer_id The ID of the answer. Only sent as part of responses from Discord's API/Gateway. | ||
* @property PollMedia $poll_media The data of the answer | ||
*/ | ||
class PollAnswer extends Part | ||
{ | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
protected $fillable = [ | ||
'answer_id', | ||
'poll_media' | ||
]; | ||
|
||
// TODO | ||
} |