Struct EmbedProvider
A provider field for an Embed.
Namespace: Discord
Assembly: Discord.Net.Core.dll
Syntax
public struct EmbedProvider
Properties
| Improve this Doc View SourceName
Gets the name of the provider.
Declaration
public readonly string Name { get; }
Property Value
Type | Description |
---|---|
String | A string representing the name of the provider. |
Url
Gets the URL of the provider.
Declaration
public readonly string Url { get; }
Property Value
Type | Description |
---|---|
String | A string representing the link to the provider. |
Methods
| Improve this Doc View SourceEquals(Nullable<EmbedProvider>)
Determines whether the specified EmbedProvider is equal to the current EmbedProvider
Declaration
public bool Equals(EmbedProvider? embedProvider)
Parameters
Type | Name | Description |
---|---|---|
Nullable<EmbedProvider> | embedProvider | The EmbedProvider to compare with the current EmbedProvider |
Returns
Type | Description |
---|---|
Boolean |
Equals(Object)
Determines whether the specified object is equal to the current EmbedProvider.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | The object to compare with the current EmbedProvider |
Returns
Type | Description |
---|---|
Boolean |
Remarks
If the object passes is an EmbedProvider, Equals(Nullable<EmbedProvider>) will be called to compare the 2 instances
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
ToString()
Gets the name of the provider.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | A string that resolves to Name. |
Operators
| Improve this Doc View SourceEquality(Nullable<EmbedProvider>, Nullable<EmbedProvider>)
Declaration
public static bool operator ==(EmbedProvider? left, EmbedProvider? right)
Parameters
Type | Name | Description |
---|---|---|
Nullable<EmbedProvider> | left | |
Nullable<EmbedProvider> | right |
Returns
Type | Description |
---|---|
Boolean |
Inequality(Nullable<EmbedProvider>, Nullable<EmbedProvider>)
Declaration
public static bool operator !=(EmbedProvider? left, EmbedProvider? right)
Parameters
Type | Name | Description |
---|---|---|
Nullable<EmbedProvider> | left | |
Nullable<EmbedProvider> | right |
Returns
Type | Description |
---|---|
Boolean |