pin method

Future<void> pin(
  1. Snowflake webhookId
)

Implementation

Future<void> pin (Snowflake webhookId) async {
  if (isPinned) {
    Console.warn(message: 'Message $id is already pinned');
    return;
  }

  Http http = ioc.singleton(Service.http);
  await http.put(url: '/channels/${channel.id}/pins/$id', payload: {});
}