Skip to content
This repository was archived by the owner on Feb 18, 2023. It is now read-only.

Commit a692e0b

Browse files
committed
Relicensing under MIT license
1 parent 8fc8e62 commit a692e0b

File tree

12 files changed

+39
-702
lines changed

12 files changed

+39
-702
lines changed

.php_cs.dist

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
$header = <<<'EOF'
44
This file is a part of the DiscordPHP-Slash project.
55
6-
Copyright (c) 2020-present David Cole <[email protected]>
6+
Copyright (c) 2021 David Cole <[email protected]>
77
8-
This source file is subject to the GNU General Public License v3.0
9-
that is bundled with this source code in the LICENSE.md file.
8+
This source file is subject to the MIT license which is
9+
bundled with this source code in the LICENSE.md file.
1010
EOF;
1111

1212
$fixers = [

LICENSE.md

Lines changed: 5 additions & 669 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ The gateway method is much easier to set up as you do not have to worry about SS
275275

276276
## License
277277

278-
This software is licensed under the GNU General Public License v3.0 which can be viewed in the LICENSE.md file.
278+
This software is licensed under the MIT license which can be viewed in the LICENSE.md file.
279279

280280
## Credits
281281

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
},
2626
"require-dev": {
2727
"symfony/var-dumper": "^5.2",
28-
"team-reflex/discord-php": "dev-develop"
28+
"team-reflex/discord-php": "dev-develop",
29+
"friendsofphp/php-cs-fixer": "^2.18"
2930
},
3031
"suggest": {
3132
"kambo/httpmessage": "Required for hosting the command server behind a CGI/FPM server.",

src/Discord/Client.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
/*
44
* This file is a part of the DiscordPHP-Slash project.
55
*
6-
* Copyright (c) 2020-present David Cole <[email protected]>
6+
* Copyright (c) 2021 David Cole <[email protected]>
77
*
8-
* This source file is subject to the GNU General Public License v3.0
9-
* that is bundled with this source code in the LICENSE.md file.
8+
* This source file is subject to the MIT license which is
9+
* bundled with this source code in the LICENSE.md file.
1010
*/
1111

1212
namespace Discord\Slash;

src/Discord/Enums/ApplicationCommandOptionType.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
/*
44
* This file is a part of the DiscordPHP-Slash project.
55
*
6-
* Copyright (c) 2020-present David Cole <[email protected]>
6+
* Copyright (c) 2021 David Cole <[email protected]>
77
*
8-
* This source file is subject to the GNU General Public License v3.0
9-
* that is bundled with this source code in the LICENSE.md file.
8+
* This source file is subject to the MIT license which is
9+
* bundled with this source code in the LICENSE.md file.
1010
*/
1111

1212
namespace Discord\Slash\Enums;

src/Discord/Parts/Choices.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
/*
44
* This file is a part of the DiscordPHP-Slash project.
55
*
6-
* Copyright (c) 2020-present David Cole <[email protected]>
6+
* Copyright (c) 2021 David Cole <[email protected]>
77
*
8-
* This source file is subject to the GNU General Public License v3.0
9-
* that is bundled with this source code in the LICENSE.md file.
8+
* This source file is subject to the MIT license which is
9+
* bundled with this source code in the LICENSE.md file.
1010
*/
1111

1212
namespace Discord\Slash\Parts;

src/Discord/Parts/Command.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
/*
44
* This file is a part of the DiscordPHP-Slash project.
55
*
6-
* Copyright (c) 2020-present David Cole <[email protected]>
6+
* Copyright (c) 2021 David Cole <[email protected]>
77
*
8-
* This source file is subject to the GNU General Public License v3.0
9-
* that is bundled with this source code in the LICENSE.md file.
8+
* This source file is subject to the MIT license which is
9+
* bundled with this source code in the LICENSE.md file.
1010
*/
1111

1212
namespace Discord\Slash\Parts;

src/Discord/Parts/Interaction.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
/*
44
* This file is a part of the DiscordPHP-Slash project.
55
*
6-
* Copyright (c) 2020-present David Cole <[email protected]>
6+
* Copyright (c) 2021 David Cole <[email protected]>
77
*
8-
* This source file is subject to the GNU General Public License v3.0
9-
* that is bundled with this source code in the LICENSE.md file.
8+
* This source file is subject to the MIT license which is
9+
* bundled with this source code in the LICENSE.md file.
1010
*/
1111

1212
namespace Discord\Slash\Parts;
@@ -226,10 +226,10 @@ public function sendFollowUpMessage(array $options): ExtendedPromiseInterface
226226
* Also requires the slash client to be linked to a DiscordPHP client
227227
* OR an application ID given in the options array.
228228
*
229-
* @param string $message_id
230-
* @param string|null $content
229+
* @param string $message_id
230+
* @param string|null $content
231231
* @param array[]|Embed[]|null $embeds
232-
* @param array|null $allowed_mentions
232+
* @param array|null $allowed_mentions
233233
*
234234
* @return ExtendedPromiseInterface
235235
*/
@@ -272,7 +272,7 @@ private function validateFollowUpMessage(array $options)
272272
$resolver
273273
->setDefined([
274274
'content', 'username', 'avatar_url',
275-
'tts', 'embeds', 'allowed_mentions'
275+
'tts', 'embeds', 'allowed_mentions',
276276
])
277277
->setAllowedTypes('content', 'string')
278278
->setAllowedTypes('username', 'string')

src/Discord/Parts/Part.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
/*
44
* This file is a part of the DiscordPHP-Slash project.
55
*
6-
* Copyright (c) 2020-present David Cole <[email protected]>
6+
* Copyright (c) 2021 David Cole <[email protected]>
77
*
8-
* This source file is subject to the GNU General Public License v3.0
9-
* that is bundled with this source code in the LICENSE.md file.
8+
* This source file is subject to the MIT license which is
9+
* bundled with this source code in the LICENSE.md file.
1010
*/
1111

1212
namespace Discord\Slash\Parts;

0 commit comments

Comments
 (0)