Dalamud/docs/api/Discord.CDN.html
2020-03-11 21:54:11 +09:00

785 lines
33 KiB
HTML

<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Class CDN
</title>
<meta name="viewport" content="width=device-width">
<meta name="title" content="Class CDN
">
<meta name="generator" content="docfx 2.50.0.0">
<link rel="shortcut icon" href="../favicon.ico">
<link rel="stylesheet" href="../styles/docfx.vendor.css">
<link rel="stylesheet" href="../styles/docfx.css">
<link rel="stylesheet" href="../styles/main.css">
<meta property="docfx:navrel" content="">
<meta property="docfx:tocrel" content="toc.html">
</head>
<body data-spy="scroll" data-target="#affix" data-offset="120">
<div id="wrapper">
<header>
<nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="../index.html">
<img id="logo" class="svg" src="../logo.svg" alt="">
</a>
</div>
<div class="collapse navbar-collapse" id="navbar">
<form class="navbar-form navbar-right" role="search" id="search">
<div class="form-group">
<input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
</div>
</form>
</div>
</div>
</nav>
<div class="subnav navbar navbar-default">
<div class="container hide-when-search" id="breadcrumb">
<ul class="breadcrumb">
<li></li>
</ul>
</div>
</div>
</header>
<div role="main" class="container body-content hide-when-search">
<div class="sidenav hide-when-search">
<a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
<div class="sidetoggle collapse" id="sidetoggle">
<div id="sidetoc"></div>
</div>
</div>
<div class="article row grid-right">
<div class="col-md-10">
<article class="content wrap" id="_content" data-uid="Discord.CDN">
<h1 id="Discord_CDN" data-uid="Discord.CDN" class="text-break">Class CDN
</h1>
<div class="markdown level0 summary"><p>Represents a class containing the strings related to various Content Delivery Networks (CDNs).</p>
</div>
<div class="markdown level0 conceptual"></div>
<div class="inheritance">
<h5>Inheritance</h5>
<div class="level0"><span class="xref">System.Object</span></div>
<div class="level1"><span class="xref">CDN</span></div>
</div>
<div class="inheritedMembers">
<h5>Inherited Members</h5>
<div>
<span class="xref">System.Object.ToString()</span>
</div>
<div>
<span class="xref">System.Object.Equals(System.Object)</span>
</div>
<div>
<span class="xref">System.Object.Equals(System.Object, System.Object)</span>
</div>
<div>
<span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
</div>
<div>
<span class="xref">System.Object.GetHashCode()</span>
</div>
<div>
<span class="xref">System.Object.GetType()</span>
</div>
<div>
<span class="xref">System.Object.MemberwiseClone()</span>
</div>
</div>
<h6><strong>Namespace</strong>: <a class="xref" href="Discord.html">Discord</a></h6>
<h6><strong>Assembly</strong>: Discord.Net.Core.dll</h6>
<h5 id="Discord_CDN_syntax">Syntax</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static class CDN</code></pre>
</div>
<h3 id="methods">Methods
</h3>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/goaaats/Discord.Net/new/819a325cec923e4a817ab2f08be5c7bbe0d775d0/apiSpec/new?filename=Discord_CDN_GetApplicationIconUrl_System_UInt64_System_String_.md&amp;value=---%0Auid%3A%20Discord.CDN.GetApplicationIconUrl(System.UInt64%2CSystem.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/goaaats/Discord.Net/blob/819a325cec923e4a817ab2f08be5c7bbe0d775d0/src/Discord.Net.Core/CDN.cs/#L18">View Source</a>
</span>
<a id="Discord_CDN_GetApplicationIconUrl_" data-uid="Discord.CDN.GetApplicationIconUrl*"></a>
<h4 id="Discord_CDN_GetApplicationIconUrl_System_UInt64_System_String_" data-uid="Discord.CDN.GetApplicationIconUrl(System.UInt64,System.String)">GetApplicationIconUrl(UInt64, String)</h4>
<div class="markdown level1 summary"><p>Returns an application icon URL.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static string GetApplicationIconUrl(ulong appId, string iconId)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.UInt64</span></td>
<td><span class="parametername">appId</span></td>
<td><p>The application identifier.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">iconId</span></td>
<td><p>The icon identifier.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><p>A URL pointing to the application's icon.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/goaaats/Discord.Net/new/819a325cec923e4a817ab2f08be5c7bbe0d775d0/apiSpec/new?filename=Discord_CDN_GetChannelIconUrl_System_UInt64_System_String_.md&amp;value=---%0Auid%3A%20Discord.CDN.GetChannelIconUrl(System.UInt64%2CSystem.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/goaaats/Discord.Net/blob/819a325cec923e4a817ab2f08be5c7bbe0d775d0/src/Discord.Net.Core/CDN.cs/#L77">View Source</a>
</span>
<a id="Discord_CDN_GetChannelIconUrl_" data-uid="Discord.CDN.GetChannelIconUrl*"></a>
<h4 id="Discord_CDN_GetChannelIconUrl_System_UInt64_System_String_" data-uid="Discord.CDN.GetChannelIconUrl(System.UInt64,System.String)">GetChannelIconUrl(UInt64, String)</h4>
<div class="markdown level1 summary"><p>Returns a channel icon URL.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static string GetChannelIconUrl(ulong channelId, string iconId)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.UInt64</span></td>
<td><span class="parametername">channelId</span></td>
<td><p>The channel snowflake identifier.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">iconId</span></td>
<td><p>The icon identifier.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><p>A URL pointing to the channel's icon.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/goaaats/Discord.Net/new/819a325cec923e4a817ab2f08be5c7bbe0d775d0/apiSpec/new?filename=Discord_CDN_GetDefaultUserAvatarUrl_System_UInt16_.md&amp;value=---%0Auid%3A%20Discord.CDN.GetDefaultUserAvatarUrl(System.UInt16)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/goaaats/Discord.Net/blob/819a325cec923e4a817ab2f08be5c7bbe0d775d0/src/Discord.Net.Core/CDN.cs/#L45">View Source</a>
</span>
<a id="Discord_CDN_GetDefaultUserAvatarUrl_" data-uid="Discord.CDN.GetDefaultUserAvatarUrl*"></a>
<h4 id="Discord_CDN_GetDefaultUserAvatarUrl_System_UInt16_" data-uid="Discord.CDN.GetDefaultUserAvatarUrl(System.UInt16)">GetDefaultUserAvatarUrl(UInt16)</h4>
<div class="markdown level1 summary"><p>Returns the default user avatar URL.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static string GetDefaultUserAvatarUrl(ushort discriminator)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.UInt16</span></td>
<td><span class="parametername">discriminator</span></td>
<td><p>The discriminator value of a user.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><p>A URL pointing to the user's default avatar when one isn't set.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/goaaats/Discord.Net/new/819a325cec923e4a817ab2f08be5c7bbe0d775d0/apiSpec/new?filename=Discord_CDN_GetEmojiUrl_System_UInt64_System_Boolean_.md&amp;value=---%0Auid%3A%20Discord.CDN.GetEmojiUrl(System.UInt64%2CSystem.Boolean)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/goaaats/Discord.Net/blob/819a325cec923e4a817ab2f08be5c7bbe0d775d0/src/Discord.Net.Core/CDN.cs/#L103">View Source</a>
</span>
<a id="Discord_CDN_GetEmojiUrl_" data-uid="Discord.CDN.GetEmojiUrl*"></a>
<h4 id="Discord_CDN_GetEmojiUrl_System_UInt64_System_Boolean_" data-uid="Discord.CDN.GetEmojiUrl(System.UInt64,System.Boolean)">GetEmojiUrl(UInt64, Boolean)</h4>
<div class="markdown level1 summary"><p>Returns an emoji URL.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static string GetEmojiUrl(ulong emojiId, bool animated)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.UInt64</span></td>
<td><span class="parametername">emojiId</span></td>
<td><p>The emoji snowflake identifier.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Boolean</span></td>
<td><span class="parametername">animated</span></td>
<td><p>Whether this emoji is animated.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><p>A URL pointing to the custom emote.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/goaaats/Discord.Net/new/819a325cec923e4a817ab2f08be5c7bbe0d775d0/apiSpec/new?filename=Discord_CDN_GetGuildBannerUrl_System_UInt64_System_String_System_Nullable_System_UInt16__.md&amp;value=---%0Auid%3A%20Discord.CDN.GetGuildBannerUrl(System.UInt64%2CSystem.String%2CSystem.Nullable%7BSystem.UInt16%7D)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/goaaats/Discord.Net/blob/819a325cec923e4a817ab2f08be5c7bbe0d775d0/src/Discord.Net.Core/CDN.cs/#L89">View Source</a>
</span>
<a id="Discord_CDN_GetGuildBannerUrl_" data-uid="Discord.CDN.GetGuildBannerUrl*"></a>
<h4 id="Discord_CDN_GetGuildBannerUrl_System_UInt64_System_String_System_Nullable_System_UInt16__" data-uid="Discord.CDN.GetGuildBannerUrl(System.UInt64,System.String,System.Nullable{System.UInt16})">GetGuildBannerUrl(UInt64, String, Nullable&lt;UInt16&gt;)</h4>
<div class="markdown level1 summary"><p>Returns a guild banner URL.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static string GetGuildBannerUrl(ulong guildId, string bannerId, ushort? size = default(ushort? ))</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.UInt64</span></td>
<td><span class="parametername">guildId</span></td>
<td><p>The guild snowflake identifier.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">bannerId</span></td>
<td><p>The banner image identifier.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.Nullable</span>&lt;<span class="xref">System.UInt16</span>&gt;</td>
<td><span class="parametername">size</span></td>
<td><p>The size of the image to return in horizontal pixels. This can be any power of two between 16 and 2048 inclusive.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><p>A URL pointing to the guild's banner image.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/goaaats/Discord.Net/new/819a325cec923e4a817ab2f08be5c7bbe0d775d0/apiSpec/new?filename=Discord_CDN_GetGuildIconUrl_System_UInt64_System_String_.md&amp;value=---%0Auid%3A%20Discord.CDN.GetGuildIconUrl(System.UInt64%2CSystem.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/goaaats/Discord.Net/blob/819a325cec923e4a817ab2f08be5c7bbe0d775d0/src/Discord.Net.Core/CDN.cs/#L57">View Source</a>
</span>
<a id="Discord_CDN_GetGuildIconUrl_" data-uid="Discord.CDN.GetGuildIconUrl*"></a>
<h4 id="Discord_CDN_GetGuildIconUrl_System_UInt64_System_String_" data-uid="Discord.CDN.GetGuildIconUrl(System.UInt64,System.String)">GetGuildIconUrl(UInt64, String)</h4>
<div class="markdown level1 summary"><p>Returns an icon URL.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static string GetGuildIconUrl(ulong guildId, string iconId)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.UInt64</span></td>
<td><span class="parametername">guildId</span></td>
<td><p>The guild snowflake identifier.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">iconId</span></td>
<td><p>The icon identifier.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><p>A URL pointing to the guild's icon.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/goaaats/Discord.Net/new/819a325cec923e4a817ab2f08be5c7bbe0d775d0/apiSpec/new?filename=Discord_CDN_GetGuildSplashUrl_System_UInt64_System_String_.md&amp;value=---%0Auid%3A%20Discord.CDN.GetGuildSplashUrl(System.UInt64%2CSystem.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/goaaats/Discord.Net/blob/819a325cec923e4a817ab2f08be5c7bbe0d775d0/src/Discord.Net.Core/CDN.cs/#L67">View Source</a>
</span>
<a id="Discord_CDN_GetGuildSplashUrl_" data-uid="Discord.CDN.GetGuildSplashUrl*"></a>
<h4 id="Discord_CDN_GetGuildSplashUrl_System_UInt64_System_String_" data-uid="Discord.CDN.GetGuildSplashUrl(System.UInt64,System.String)">GetGuildSplashUrl(UInt64, String)</h4>
<div class="markdown level1 summary"><p>Returns a guild splash URL.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static string GetGuildSplashUrl(ulong guildId, string splashId)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.UInt64</span></td>
<td><span class="parametername">guildId</span></td>
<td><p>The guild snowflake identifier.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">splashId</span></td>
<td><p>The splash icon identifier.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><p>A URL pointing to the guild's icon.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/goaaats/Discord.Net/new/819a325cec923e4a817ab2f08be5c7bbe0d775d0/apiSpec/new?filename=Discord_CDN_GetRichAssetUrl_System_UInt64_System_String_System_UInt16_Discord_ImageFormat_.md&amp;value=---%0Auid%3A%20Discord.CDN.GetRichAssetUrl(System.UInt64%2CSystem.String%2CSystem.UInt16%2CDiscord.ImageFormat)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/goaaats/Discord.Net/blob/819a325cec923e4a817ab2f08be5c7bbe0d775d0/src/Discord.Net.Core/CDN.cs/#L116">View Source</a>
</span>
<a id="Discord_CDN_GetRichAssetUrl_" data-uid="Discord.CDN.GetRichAssetUrl*"></a>
<h4 id="Discord_CDN_GetRichAssetUrl_System_UInt64_System_String_System_UInt16_Discord_ImageFormat_" data-uid="Discord.CDN.GetRichAssetUrl(System.UInt64,System.String,System.UInt16,Discord.ImageFormat)">GetRichAssetUrl(UInt64, String, UInt16, ImageFormat)</h4>
<div class="markdown level1 summary"><p>Returns a Rich Presence asset URL.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static string GetRichAssetUrl(ulong appId, string assetId, ushort size, ImageFormat format)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.UInt64</span></td>
<td><span class="parametername">appId</span></td>
<td><p>The application identifier.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">assetId</span></td>
<td><p>The asset identifier.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.UInt16</span></td>
<td><span class="parametername">size</span></td>
<td><p>The size of the image to return in. This can be any power of two between 16 and 2048.</p>
</td>
</tr>
<tr>
<td><a class="xref" href="Discord.ImageFormat.html">ImageFormat</a></td>
<td><span class="parametername">format</span></td>
<td><p>The format to return.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><p>A URL pointing to the asset image in the specified size.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/goaaats/Discord.Net/new/819a325cec923e4a817ab2f08be5c7bbe0d775d0/apiSpec/new?filename=Discord_CDN_GetSpotifyAlbumArtUrl_System_String_.md&amp;value=---%0Auid%3A%20Discord.CDN.GetSpotifyAlbumArtUrl(System.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/goaaats/Discord.Net/blob/819a325cec923e4a817ab2f08be5c7bbe0d775d0/src/Discord.Net.Core/CDN.cs/#L129">View Source</a>
</span>
<a id="Discord_CDN_GetSpotifyAlbumArtUrl_" data-uid="Discord.CDN.GetSpotifyAlbumArtUrl*"></a>
<h4 id="Discord_CDN_GetSpotifyAlbumArtUrl_System_String_" data-uid="Discord.CDN.GetSpotifyAlbumArtUrl(System.String)">GetSpotifyAlbumArtUrl(String)</h4>
<div class="markdown level1 summary"><p>Returns a Spotify album URL.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static string GetSpotifyAlbumArtUrl(string albumArtId)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">albumArtId</span></td>
<td><p>The identifier for the album art (e.g. 6be8f4c8614ecf4f1dd3ebba8d8692d8ce4951ac).</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><p>A URL pointing to the Spotify album art.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/goaaats/Discord.Net/new/819a325cec923e4a817ab2f08be5c7bbe0d775d0/apiSpec/new?filename=Discord_CDN_GetSpotifyDirectUrl_System_String_.md&amp;value=---%0Auid%3A%20Discord.CDN.GetSpotifyDirectUrl(System.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/goaaats/Discord.Net/blob/819a325cec923e4a817ab2f08be5c7bbe0d775d0/src/Discord.Net.Core/CDN.cs/#L138">View Source</a>
</span>
<a id="Discord_CDN_GetSpotifyDirectUrl_" data-uid="Discord.CDN.GetSpotifyDirectUrl*"></a>
<h4 id="Discord_CDN_GetSpotifyDirectUrl_System_String_" data-uid="Discord.CDN.GetSpotifyDirectUrl(System.String)">GetSpotifyDirectUrl(String)</h4>
<div class="markdown level1 summary"><p>Returns a Spotify direct URL for a track.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static string GetSpotifyDirectUrl(string trackId)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">trackId</span></td>
<td><p>The identifier for the track (e.g. 4uLU6hMCjMI75M1A2tKUQC).</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><p>A URL pointing to the Spotify track.</p>
</td>
</tr>
</tbody>
</table>
<span class="small pull-right mobile-hide">
<span class="divider">|</span>
<a href="https://github.com/goaaats/Discord.Net/new/819a325cec923e4a817ab2f08be5c7bbe0d775d0/apiSpec/new?filename=Discord_CDN_GetUserAvatarUrl_System_UInt64_System_String_System_UInt16_Discord_ImageFormat_.md&amp;value=---%0Auid%3A%20Discord.CDN.GetUserAvatarUrl(System.UInt64%2CSystem.String%2CSystem.UInt16%2CDiscord.ImageFormat)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
</span>
<span class="small pull-right mobile-hide">
<a href="https://github.com/goaaats/Discord.Net/blob/819a325cec923e4a817ab2f08be5c7bbe0d775d0/src/Discord.Net.Core/CDN.cs/#L31">View Source</a>
</span>
<a id="Discord_CDN_GetUserAvatarUrl_" data-uid="Discord.CDN.GetUserAvatarUrl*"></a>
<h4 id="Discord_CDN_GetUserAvatarUrl_System_UInt64_System_String_System_UInt16_Discord_ImageFormat_" data-uid="Discord.CDN.GetUserAvatarUrl(System.UInt64,System.String,System.UInt16,Discord.ImageFormat)">GetUserAvatarUrl(UInt64, String, UInt16, ImageFormat)</h4>
<div class="markdown level1 summary"><p>Returns a user avatar URL.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="decalaration">Declaration</h5>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static string GetUserAvatarUrl(ulong userId, string avatarId, ushort size, ImageFormat format)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.UInt64</span></td>
<td><span class="parametername">userId</span></td>
<td><p>The user snowflake identifier.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.String</span></td>
<td><span class="parametername">avatarId</span></td>
<td><p>The avatar identifier.</p>
</td>
</tr>
<tr>
<td><span class="xref">System.UInt16</span></td>
<td><span class="parametername">size</span></td>
<td><p>The size of the image to return in horizontal pixels. This can be any power of two between 16 and 2048.</p>
</td>
</tr>
<tr>
<td><a class="xref" href="Discord.ImageFormat.html">ImageFormat</a></td>
<td><span class="parametername">format</span></td>
<td><p>The format to return.</p>
</td>
</tr>
</tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-striped table-condensed">
<thead>
<tr>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><span class="xref">System.String</span></td>
<td><p>A URL pointing to the user's avatar in the specified size.</p>
</td>
</tr>
</tbody>
</table>
</article>
</div>
<div class="hidden-sm col-md-2" role="complementary">
<div class="sideaffix">
<div class="contribution">
<ul class="nav">
<li>
<a href="https://github.com/goaaats/Discord.Net/new/819a325cec923e4a817ab2f08be5c7bbe0d775d0/apiSpec/new?filename=Discord_CDN.md&amp;value=---%0Auid%3A%20Discord.CDN%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A" class="contribution-link">Improve this Doc</a>
</li>
<li>
<a href="https://github.com/goaaats/Discord.Net/blob/819a325cec923e4a817ab2f08be5c7bbe0d775d0/src/Discord.Net.Core/CDN.cs/#L8" class="contribution-link">View Source</a>
</li>
</ul>
</div>
<nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
<!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
</nav>
</div>
</div>
</div>
</div>
<footer>
<div class="grad-bottom"></div>
<div class="footer">
<div class="container">
<span class="pull-right">
<a href="#top">Back to top</a>
</span>
<span>Generated by <strong>DocFX</strong></span>
</div>
</div>
</footer>
</div>
<script type="text/javascript" src="../styles/docfx.vendor.js"></script>
<script type="text/javascript" src="../styles/docfx.js"></script>
<script type="text/javascript" src="../styles/main.js"></script>
</body>
</html>