Skip to content

Commit 45fdde1

Browse files
committed
add license file and copyright headers
1 parent a40bd83 commit 45fdde1

28 files changed

+921
-4
lines changed

.idea/vcs.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

LICENSE.md

+478
Large diffs are not rendered by default.

api/application.go

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright (c) 2022. Veteran Software
3+
*
4+
* Discord API Wrapper - A custom wrapper for the Discord REST API developed for a proprietary project.
5+
*
6+
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
7+
* License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later
8+
* version.
9+
*
10+
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
11+
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12+
*
13+
* You should have received a copy of the GNU General Public License along with this program.
14+
* If not, see <http://www.gnu.org/licenses/>.
15+
*/
16+
117
package api
218

319
type Application struct {

api/application_commands.go

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright (c) 2022. Veteran Software
3+
*
4+
* Discord API Wrapper - A custom wrapper for the Discord REST API developed for a proprietary project.
5+
*
6+
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
7+
* License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later
8+
* version.
9+
*
10+
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
11+
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12+
*
13+
* You should have received a copy of the GNU General Public License along with this program.
14+
* If not, see <http://www.gnu.org/licenses/>.
15+
*/
16+
117
package api
218

319
import (

api/auditLog.go

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright (c) 2022. Veteran Software
3+
*
4+
* Discord API Wrapper - A custom wrapper for the Discord REST API developed for a proprietary project.
5+
*
6+
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
7+
* License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later
8+
* version.
9+
*
10+
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
11+
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12+
*
13+
* You should have received a copy of the GNU General Public License along with this program.
14+
* If not, see <http://www.gnu.org/licenses/>.
15+
*/
16+
117
package api
218

319
import (

api/channel.go

+21-4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright (c) 2022. Veteran Software
3+
*
4+
* Discord API Wrapper - A custom wrapper for the Discord REST API developed for a proprietary project.
5+
*
6+
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
7+
* License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later
8+
* version.
9+
*
10+
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
11+
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12+
*
13+
* You should have received a copy of the GNU General Public License along with this program.
14+
* If not, see <http://www.gnu.org/licenses/>.
15+
*/
16+
117
package api
218

319
import (
@@ -16,7 +32,9 @@ import (
1632

1733
/* CHANNEL OBJECT */
1834

35+
// Channel - Represents a guild or DM channel within Discord.
1936
type Channel struct {
37+
// ID - the id of this channel
2038
ID Snowflake `json:"id"`
2139
Type ChannelType `json:"type"`
2240
GuildID Snowflake `json:"guild_id,omitempty"`
@@ -56,10 +74,7 @@ const (
5674
GuildCategory
5775
GuildNews
5876
GuildStore
59-
_
60-
_
61-
_
62-
GuildNewsThread
77+
GuildNewsThread ChannelType = iota + 3
6378
GuildPublicThread
6479
GuildPrivateThread
6580
GuildStageVoice
@@ -69,7 +84,9 @@ type VideoQualityMode int
6984

7085
//goland:noinspection GoUnusedConst
7186
const (
87+
// Auto - Discord chooses the quality for optimal performance
7288
Auto VideoQualityMode = iota + 1
89+
// Full - 720p
7390
Full
7491
)
7592

api/channel_finisher_api.go

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright (c) 2022. Veteran Software
3+
*
4+
* Discord API Wrapper - A custom wrapper for the Discord REST API developed for a proprietary project.
5+
*
6+
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
7+
* License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later
8+
* version.
9+
*
10+
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
11+
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12+
*
13+
* You should have received a copy of the GNU General Public License along with this program.
14+
* If not, see <http://www.gnu.org/licenses/>.
15+
*/
16+
117
package api
218

319
import (

api/emoji.go

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright (c) 2022. Veteran Software
3+
*
4+
* Discord API Wrapper - A custom wrapper for the Discord REST API developed for a proprietary project.
5+
*
6+
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
7+
* License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later
8+
* version.
9+
*
10+
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
11+
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12+
*
13+
* You should have received a copy of the GNU General Public License along with this program.
14+
* If not, see <http://www.gnu.org/licenses/>.
15+
*/
16+
117
package api
218

319
import (

api/gateway.go

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright (c) 2022. Veteran Software
3+
*
4+
* Discord API Wrapper - A custom wrapper for the Discord REST API developed for a proprietary project.
5+
*
6+
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
7+
* License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later
8+
* version.
9+
*
10+
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
11+
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12+
*
13+
* You should have received a copy of the GNU General Public License along with this program.
14+
* If not, see <http://www.gnu.org/licenses/>.
15+
*/
16+
117
package api
218

319
/* Payloads */

api/guild.go

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright (c) 2022. Veteran Software
3+
*
4+
* Discord API Wrapper - A custom wrapper for the Discord REST API developed for a proprietary project.
5+
*
6+
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
7+
* License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later
8+
* version.
9+
*
10+
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
11+
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12+
*
13+
* You should have received a copy of the GNU General Public License along with this program.
14+
* If not, see <http://www.gnu.org/licenses/>.
15+
*/
16+
117
package api
218

319
import (

api/guild_scheduled_events.go

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright (c) 2022. Veteran Software
3+
*
4+
* Discord API Wrapper - A custom wrapper for the Discord REST API developed for a proprietary project.
5+
*
6+
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
7+
* License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later
8+
* version.
9+
*
10+
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
11+
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12+
*
13+
* You should have received a copy of the GNU General Public License along with this program.
14+
* If not, see <http://www.gnu.org/licenses/>.
15+
*/
16+
117
package api
218

319
import "time"

api/invite.go

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright (c) 2022. Veteran Software
3+
*
4+
* Discord API Wrapper - A custom wrapper for the Discord REST API developed for a proprietary project.
5+
*
6+
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
7+
* License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later
8+
* version.
9+
*
10+
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
11+
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12+
*
13+
* You should have received a copy of the GNU General Public License along with this program.
14+
* If not, see <http://www.gnu.org/licenses/>.
15+
*/
16+
117
package api
218

319
import (

api/message_components.go

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright (c) 2022. Veteran Software
3+
*
4+
* Discord API Wrapper - A custom wrapper for the Discord REST API developed for a proprietary project.
5+
*
6+
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
7+
* License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later
8+
* version.
9+
*
10+
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
11+
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12+
*
13+
* You should have received a copy of the GNU General Public License along with this program.
14+
* If not, see <http://www.gnu.org/licenses/>.
15+
*/
16+
117
package api
218

319
/* COMPONENT OBJECT */

api/message_components_finisher_api.go

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright (c) 2022. Veteran Software
3+
*
4+
* Discord API Wrapper - A custom wrapper for the Discord REST API developed for a proprietary project.
5+
*
6+
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
7+
* License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later
8+
* version.
9+
*
10+
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
11+
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12+
*
13+
* You should have received a copy of the GNU General Public License along with this program.
14+
* If not, see <http://www.gnu.org/licenses/>.
15+
*/
16+
117
package api
218

319
/* MESSAGE COMPONENT API */

api/message_components_finisher_api_test.go

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright (c) 2022. Veteran Software
3+
*
4+
* Discord API Wrapper - A custom wrapper for the Discord REST API developed for a proprietary project.
5+
*
6+
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
7+
* License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later
8+
* version.
9+
*
10+
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
11+
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12+
*
13+
* You should have received a copy of the GNU General Public License along with this program.
14+
* If not, see <http://www.gnu.org/licenses/>.
15+
*/
16+
117
package api
218

319
import (

api/permissions.go

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright (c) 2022. Veteran Software
3+
*
4+
* Discord API Wrapper - A custom wrapper for the Discord REST API developed for a proprietary project.
5+
*
6+
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
7+
* License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later
8+
* version.
9+
*
10+
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
11+
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12+
*
13+
* You should have received a copy of the GNU General Public License along with this program.
14+
* If not, see <http://www.gnu.org/licenses/>.
15+
*/
16+
117
package api
218

319
import (

api/rate_limits.go

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright (c) 2022. Veteran Software
3+
*
4+
* Discord API Wrapper - A custom wrapper for the Discord REST API developed for a proprietary project.
5+
*
6+
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
7+
* License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later
8+
* version.
9+
*
10+
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
11+
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12+
*
13+
* You should have received a copy of the GNU General Public License along with this program.
14+
* If not, see <http://www.gnu.org/licenses/>.
15+
*/
16+
117
package api
218

319
import (

api/receiving_and_responding.go

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright (c) 2022. Veteran Software
3+
*
4+
* Discord API Wrapper - A custom wrapper for the Discord REST API developed for a proprietary project.
5+
*
6+
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
7+
* License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later
8+
* version.
9+
*
10+
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
11+
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12+
*
13+
* You should have received a copy of the GNU General Public License along with this program.
14+
* If not, see <http://www.gnu.org/licenses/>.
15+
*/
16+
117
package api
218

319
/* INTERACTION OBJECT */

api/reference.go

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright (c) 2022. Veteran Software
3+
*
4+
* Discord API Wrapper - A custom wrapper for the Discord REST API developed for a proprietary project.
5+
*
6+
* This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public
7+
* License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later
8+
* version.
9+
*
10+
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
11+
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12+
*
13+
* You should have received a copy of the GNU General Public License along with this program.
14+
* If not, see <http://www.gnu.org/licenses/>.
15+
*/
16+
117
package api
218

319
import (

0 commit comments

Comments
 (0)