[−][src]Struct spectacles_rest::WebhookView
A view for managing Discord webhooks.
Methods
impl WebhookView
[src]
pub fn get(&self) -> impl Future<Item = Webhook, Error = Error>
[src]
Returns a webhook object for the provided user ID.
pub fn get_with_token(
&self,
token: &str
) -> impl Future<Item = Webhook, Error = Error>
[src]
&self,
token: &str
) -> impl Future<Item = Webhook, Error = Error>
Similar to [method.get.html
], but accepts a webhook token. The returned webhook does not have a User object.
pub fn modify(
&self,
opts: ModifyWebhookOptions
) -> impl Future<Item = Webhook, Error = Error>
[src]
&self,
opts: ModifyWebhookOptions
) -> impl Future<Item = Webhook, Error = Error>
Modifies the webhook at the provided webhook ID.
This endpoint requires the MANAGE_WEBHOOKS
permission.
pub fn modify_with_token(
&self,
token: &str,
opts: ModifyWebhookOptions
) -> impl Future<Item = Webhook, Error = Error>
[src]
&self,
token: &str,
opts: ModifyWebhookOptions
) -> impl Future<Item = Webhook, Error = Error>
Similar to [method.modify.html
], but accepts a webhook token. The returned webhook does not have a User object.
pub fn delete(&self) -> impl Future<Item = (), Error = Error>
[src]
Permanently deletes this webhook.
pub fn delete_with_token(
&self,
token: &str
) -> impl Future<Item = (), Error = Error>
[src]
&self,
token: &str
) -> impl Future<Item = (), Error = Error>
Similar to [method.delete.html
], but accepts a webhook token.
pub fn execute(
&self,
token: &str,
opts: ExecuteWebhookOptions,
wait: bool
) -> impl Future<Item = Option<Message>, Error = Error>
[src]
&self,
token: &str,
opts: ExecuteWebhookOptions,
wait: bool
) -> impl Future<Item = Option<Message>, Error = Error>
Executes the provided webhook, with the provided options.
Auto Trait Implementations
impl Send for WebhookView
impl Sync for WebhookView
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<T, U> TryInto for T where
U: TryFrom<T>,
U: TryFrom<T>,