summaryrefslogtreecommitdiff
path: root/common/rust/src/discord_models/webhook.rs
diff options
context:
space:
mode:
authorMatthieu <20992787+MatthieuCoder@users.noreply.github.com>2021-11-05 19:28:19 +0400
committerGitHub <noreply@github.com>2021-11-05 19:28:19 +0400
commitde73cf954c477a7f10f64b9caf3eea8f6550b8c8 (patch)
treee61f4fd5bd6c515a5317adf8c8cbb10a362d91ff /common/rust/src/discord_models/webhook.rs
parentb73f3c90ec2a491d59275818e3f61826471452ba (diff)
parent7ddb5d3820c15ce4202e6f43057310a9fbb7178a (diff)
Merge pull request #14 from discordnova/feat/twilight
use twilight for deserialization and gateway
Diffstat (limited to 'common/rust/src/discord_models/webhook.rs')
-rw-r--r--common/rust/src/discord_models/webhook.rs29
1 files changed, 0 insertions, 29 deletions
diff --git a/common/rust/src/discord_models/webhook.rs b/common/rust/src/discord_models/webhook.rs
deleted file mode 100644
index 4648772..0000000
--- a/common/rust/src/discord_models/webhook.rs
+++ /dev/null
@@ -1,29 +0,0 @@
-use serde::{Deserialize, Serialize};
-use serde_repr::{Deserialize_repr, Serialize_repr};
-
-use super::{channel::Channel, guild::Guild, user::User};
-
-#[derive(Debug, Clone, Deserialize_repr, Serialize_repr)]
-#[repr(u8)]
-pub enum WebhookTypes {
- Incoming = 1,
- ChannelFollower = 2,
- Application = 3,
-}
-
-#[derive(Debug, Clone, Deserialize, Serialize)]
-pub struct Webhook {
- pub id: String,
- #[serde(rename = "type")]
- pub type_: WebhookTypes,
- pub guild_id: Option<String>,
- pub channel_id: Option<String>,
- pub user: Option<User>,
- pub name: Option<String>,
- pub avatar: Option<String>,
- pub token: Option<String>,
- pub application_id: Option<String>,
- pub source_guild: Option<Guild>,
- pub source_channel: Option<Channel>,
- pub url: String,
-}