generated from spatie/package-skeleton-laravel
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented ability to add attachments to message (#6)
* Implemented ability to add attachments to message * Fix styling * Fix phpstan issue --------- Co-authored-by: Plytas <[email protected]>
- Loading branch information
Showing
5 changed files
with
94 additions
and
3 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
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
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,15 @@ | ||
<?php | ||
|
||
namespace Plytas\Discord\Data; | ||
|
||
use Spatie\LaravelData\Data; | ||
|
||
class DiscordMessageEmbedImage extends Data | ||
{ | ||
public function __construct( | ||
public string $url, | ||
public ?string $proxy_url = null, | ||
public ?int $height = null, | ||
public ?int $width = null, | ||
) {} | ||
} |
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,18 @@ | ||
<?php | ||
|
||
namespace Plytas\Discord\Data; | ||
|
||
use Spatie\LaravelData\Data; | ||
|
||
class DiscordMessageFile extends Data | ||
{ | ||
public function __construct( | ||
public string $filename, | ||
public string $content, | ||
) {} | ||
|
||
public static function new(string $filename, string $content): self | ||
{ | ||
return new self($filename, $content); | ||
} | ||
} |
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