aboutsummaryrefslogtreecommitdiff
path: root/rest.sh
diff options
context:
space:
mode:
Diffstat (limited to 'rest.sh')
-rw-r--r--rest.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/rest.sh b/rest.sh
new file mode 100644
index 0000000..e4824d8
--- /dev/null
+++ b/rest.sh
@@ -0,0 +1,3 @@
+atrocity_rest() {
+ curl -X "$1" "https://discord.com/api/v10/$2" -H "authorization: Bot $ATROCITY_TOKEN" -H "content-type: application/json" --data "$3" 2>/dev/null
+}