Skip to content

Commit

Permalink
Merge branch 'csharp9' into develop
Browse files Browse the repository at this point in the history
# Conflicts:
#	Oxide.Ext.Discord/Cache/DiscordPluginCache.cs
  • Loading branch information
dassjosh committed Oct 23, 2024
2 parents b5f13c8 + 05ed433 commit 2aa842a
Show file tree
Hide file tree
Showing 761 changed files with 51,031 additions and 49,582 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public class InteractionAutoCompleteBuilder
| [Count](#count-property) { get; } | Number of added choices |
| [AddAllOnlineFirstPlayers](#addallonlinefirstplayers-method)(…) | Adds Online Players to the list first If there is still space add Offline Players |
| [AddAllPlayers](#addallplayers-method)(…) | Adds Any Player to the list |
| [AddAllPlugins](#addallplugins-method)(…) | Adds a list of all plugins in the oxide/plugins folder. Includes loaded and unloaded. |
| [AddByPlayerId](#addbyplayerid-method)(…) | Adds a player by player ID to the list |
| [AddChoice](#addchoice-method-1-of-3)(…) | Adds a [`CommandOptionChoice`](../Entities/CommandOptionChoice.md) to the response (3 methods) |
| [AddChoices](#addchoices-method)(…) | Adds a collection of [`CommandOptionChoice`](../Entities/CommandOptionChoice.md) to the response |
Expand Down Expand Up @@ -600,6 +601,30 @@ public void AddLoadablePlugins(string filter = null,

## See Also

* enum [AutoCompleteSearchMode](./AutoCompleteSearchMode.md)
* class [InteractionAutoCompleteBuilder](./InteractionAutoCompleteBuilder.md)
* namespace [Oxide.Ext.Discord.Builders](./BuildersNamespace.md)
* assembly [Oxide.Ext.Discord](../../Oxide.Ext.Discord.md)


# AddAllPlugins method

Adds a list of all plugins in the oxide/plugins folder. Includes loaded and unloaded.

```csharp
public void AddAllPlugins(string filter = null,
StringComparison comparison = StringComparison.OrdinalIgnoreCase,
AutoCompleteSearchMode search = AutoCompleteSearchMode.StartsWith)
```

| parameter | description |
| --- | --- |
| filter | String to filter by |
| comparison | StringComparison to use |
| search | [`AutoCompleteSearchMode`](./AutoCompleteSearchMode.md) Filter search mode |

## See Also

* enum [AutoCompleteSearchMode](./AutoCompleteSearchMode.md)
* class [InteractionAutoCompleteBuilder](./InteractionAutoCompleteBuilder.md)
* namespace [Oxide.Ext.Discord.Builders](./BuildersNamespace.md)
Expand Down
16 changes: 0 additions & 16 deletions Docs/Generated/Oxide.Ext.Discord/Builders/QueryStringBuilder.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ public struct QueryStringBuilder

| name | description |
| --- | --- |
| [QueryStringBuilder](#querystringbuilder-constructor)() | The default constructor. |
| [Add](#add-method)(…) | Add a key value pair to the query string |
| [AddList<T>](#addlist<t>-method)(…) | Add a list of values with the specified separator |
| override [ToString](#tostring-method)() | Returns the query string as a string. |
Expand Down Expand Up @@ -75,21 +74,6 @@ public override string ToString()

## See Also

* struct [QueryStringBuilder](./QueryStringBuilder.md)
* namespace [Oxide.Ext.Discord.Builders](./BuildersNamespace.md)
* assembly [Oxide.Ext.Discord](../../Oxide.Ext.Discord.md)


# QueryStringBuilder constructor

The default constructor.

```csharp
public QueryStringBuilder()
```

## See Also

* struct [QueryStringBuilder](./QueryStringBuilder.md)
* namespace [Oxide.Ext.Discord.Builders](./BuildersNamespace.md)
* assembly [Oxide.Ext.Discord](../../Oxide.Ext.Discord.md)
Expand Down
43 changes: 43 additions & 0 deletions Docs/Generated/Oxide.Ext.Discord/Entities/DiscordColor.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ public struct DiscordColor : IEquatable<DiscordColor>
| static readonly [Teal](#teal-field) | Teal Role Color |
| static readonly [Warning](#warning-field) | Discord Warning Color |
| readonly [Color](#color-field) | uint value of the hex color code |
| [Equals](#equals-method)(…) | |
| override [Equals](#equals-method)(…) | |
| override [GetHashCode](#gethashcode-method)() | |
| [ToHex](#tohex-method)() | Returns the color as a hex color code |
| override [ToString](#tostring-method)() | Returns the color as a string |

Expand Down Expand Up @@ -74,6 +77,46 @@ public string ToHex()

## See Also

* struct [DiscordColor](./DiscordColor.md)
* namespace [Oxide.Ext.Discord.Entities](./EntitiesNamespace.md)
* assembly [Oxide.Ext.Discord](../../Oxide.Ext.Discord.md)


# Equals method (1 of 2)

```csharp
public bool Equals(DiscordColor other)
```

## See Also

* struct [DiscordColor](./DiscordColor.md)
* namespace [Oxide.Ext.Discord.Entities](./EntitiesNamespace.md)
* assembly [Oxide.Ext.Discord](../../Oxide.Ext.Discord.md)

---

# Equals method (2 of 2)

```csharp
public override bool Equals(object obj)
```

## See Also

* struct [DiscordColor](./DiscordColor.md)
* namespace [Oxide.Ext.Discord.Entities](./EntitiesNamespace.md)
* assembly [Oxide.Ext.Discord](../../Oxide.Ext.Discord.md)


# GetHashCode method

```csharp
public override int GetHashCode()
```

## See Also

* struct [DiscordColor](./DiscordColor.md)
* namespace [Oxide.Ext.Discord.Entities](./EntitiesNamespace.md)
* assembly [Oxide.Ext.Discord](../../Oxide.Ext.Discord.md)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ public interface IWebSocketEventHandler
Called when the web socket is opened

```csharp
public ValueTask SocketOpened(Snowflake id)
public ValueTask SocketOpened(Snowflake webSocketId)
```

| parameter | description |
| --- | --- |
| id | ID of the web socket |
| webSocketId | ID of the web socket |

## See Also

Expand All @@ -47,13 +47,13 @@ public ValueTask SocketOpened(Snowflake id)
Called when the web socket is closed

```csharp
public ValueTask SocketClosed(Snowflake id, WebSocketCloseStatus code, string message)
public ValueTask SocketClosed(Snowflake webSocketId, WebSocketCloseStatus status, string message)
```

| parameter | description |
| --- | --- |
| id | ID of the websocket |
| code | Web socket close code |
| webSocketId | ID of the websocket |
| status | Web socket close code |
| message | Web socket close message |

## See Also
Expand All @@ -69,12 +69,12 @@ public ValueTask SocketClosed(Snowflake id, WebSocketCloseStatus code, string me
Called when an error occurs on the web socket

```csharp
public ValueTask SocketErrored(Snowflake id, Exception ex)
public ValueTask SocketErrored(Snowflake webSocketId, Exception ex)
```

| parameter | description |
| --- | --- |
| id | ID of the websocket |
| webSocketId | ID of the websocket |
| ex | Exception that was thrown |

## See Also
Expand All @@ -90,12 +90,12 @@ public ValueTask SocketErrored(Snowflake id, Exception ex)
Called when a message is received from the websocket

```csharp
public ValueTask SocketMessage(Snowflake id, DiscordJsonReader stream)
public ValueTask SocketMessage(Snowflake webSocketId, DiscordJsonReader stream)
```

| parameter | description |
| --- | --- |
| id | ID of the message |
| webSocketId | ID of the message |
| stream | Stream containing the message |

## See Also
Expand Down
43 changes: 43 additions & 0 deletions Docs/Generated/Oxide.Ext.Discord/Libraries/DiscordLocale.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ public struct DiscordLocale : IEquatable<DiscordLocale>
| static [Parse](#parse-method)(…) | Parses a Discord Locale |
| [IsValid](#isvalid-property) { get; } | Is the Locale Valid |
| readonly [Id](#id-field) | ID of the locale |
| [Equals](#equals-method)(…) | |
| override [Equals](#equals-method)(…) | |
| override [GetHashCode](#gethashcode-method)() | |
| [GetServerLocale](#getserverlocale-method)() | Returns the Server Locale for this Discord Locale |
| override [ToString](#tostring-method)() | Returns the ID of the Locale |

Expand Down Expand Up @@ -72,6 +75,46 @@ public override string ToString()

## See Also

* struct [DiscordLocale](./DiscordLocale.md)
* namespace [Oxide.Ext.Discord.Libraries](./LibrariesNamespace.md)
* assembly [Oxide.Ext.Discord](../../Oxide.Ext.Discord.md)


# Equals method (1 of 2)

```csharp
public bool Equals(DiscordLocale other)
```

## See Also

* struct [DiscordLocale](./DiscordLocale.md)
* namespace [Oxide.Ext.Discord.Libraries](./LibrariesNamespace.md)
* assembly [Oxide.Ext.Discord](../../Oxide.Ext.Discord.md)

---

# Equals method (2 of 2)

```csharp
public override bool Equals(object obj)
```

## See Also

* struct [DiscordLocale](./DiscordLocale.md)
* namespace [Oxide.Ext.Discord.Libraries](./LibrariesNamespace.md)
* assembly [Oxide.Ext.Discord](../../Oxide.Ext.Discord.md)


# GetHashCode method

```csharp
public override int GetHashCode()
```

## See Also

* struct [DiscordLocale](./DiscordLocale.md)
* namespace [Oxide.Ext.Discord.Libraries](./LibrariesNamespace.md)
* assembly [Oxide.Ext.Discord](../../Oxide.Ext.Discord.md)
Expand Down
43 changes: 43 additions & 0 deletions Docs/Generated/Oxide.Ext.Discord/Libraries/PlaceholderDataKey.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ public struct PlaceholderDataKey : IEquatable<PlaceholderDataKey>
| [PlaceholderDataKey](#placeholderdatakey-constructor)(…) | Constructor |
| [IsValid](#isvalid-property) { get; } | If the [`Key`](#key-field) is a valid value |
| readonly [Key](#key-field) | Value of the key |
| override [Equals](#equals-method)(…) | |
| [Equals](#equals-method)(…) | |
| override [GetHashCode](#gethashcode-method)() | |

## See Also

Expand All @@ -21,6 +24,46 @@ public struct PlaceholderDataKey : IEquatable<PlaceholderDataKey>
* [PlaceholderDataKey.cs](../../../../Oxide.Ext.Discord/Libraries/PlaceholderDataKey.cs)


# Equals method (1 of 2)

```csharp
public override bool Equals(object obj)
```

## See Also

* struct [PlaceholderDataKey](./PlaceholderDataKey.md)
* namespace [Oxide.Ext.Discord.Libraries](./LibrariesNamespace.md)
* assembly [Oxide.Ext.Discord](../../Oxide.Ext.Discord.md)

---

# Equals method (2 of 2)

```csharp
public bool Equals(PlaceholderDataKey other)
```

## See Also

* struct [PlaceholderDataKey](./PlaceholderDataKey.md)
* namespace [Oxide.Ext.Discord.Libraries](./LibrariesNamespace.md)
* assembly [Oxide.Ext.Discord](../../Oxide.Ext.Discord.md)


# GetHashCode method

```csharp
public override int GetHashCode()
```

## See Also

* struct [PlaceholderDataKey](./PlaceholderDataKey.md)
* namespace [Oxide.Ext.Discord.Libraries](./LibrariesNamespace.md)
* assembly [Oxide.Ext.Discord](../../Oxide.Ext.Discord.md)


# PlaceholderDataKey constructor

Constructor
Expand Down
43 changes: 43 additions & 0 deletions Docs/Generated/Oxide.Ext.Discord/Libraries/PlaceholderKey.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ public struct PlaceholderKey : IComparable<PlaceholderKey>, IDiscordKey, IEquata
| [IsValid](#isvalid-property) { get; } | If [`Placeholder`](#placeholder-field) Is a Valid Key |
| readonly [Placeholder](#placeholder-field) | Placeholder Key |
| [CompareTo](#compareto-method)(…) | |
| override [Equals](#equals-method)(…) | |
| [Equals](#equals-method)(…) | |
| override [GetHashCode](#gethashcode-method)() | |
| override [ToString](#tostring-method)() | Returns the PlaceholderKey formatted as a usable placeholder in text |
| [WithFormat](#withformat-method)(…) | Applies a format to a given [`PlaceholderKey`](./PlaceholderKey.md) |
| [implicit operator](#placeholderkey-implicit-operator) | Implicitly converts to String by calling the [`ToString`](#tostring-method) method. |
Expand Down Expand Up @@ -91,6 +94,46 @@ public static implicit operator string(PlaceholderKey key)

## See Also

* struct [PlaceholderKey](./PlaceholderKey.md)
* namespace [Oxide.Ext.Discord.Libraries](./LibrariesNamespace.md)
* assembly [Oxide.Ext.Discord](../../Oxide.Ext.Discord.md)


# Equals method (1 of 2)

```csharp
public override bool Equals(object obj)
```

## See Also

* struct [PlaceholderKey](./PlaceholderKey.md)
* namespace [Oxide.Ext.Discord.Libraries](./LibrariesNamespace.md)
* assembly [Oxide.Ext.Discord](../../Oxide.Ext.Discord.md)

---

# Equals method (2 of 2)

```csharp
public bool Equals(PlaceholderKey other)
```

## See Also

* struct [PlaceholderKey](./PlaceholderKey.md)
* namespace [Oxide.Ext.Discord.Libraries](./LibrariesNamespace.md)
* assembly [Oxide.Ext.Discord](../../Oxide.Ext.Discord.md)


# GetHashCode method

```csharp
public override int GetHashCode()
```

## See Also

* struct [PlaceholderKey](./PlaceholderKey.md)
* namespace [Oxide.Ext.Discord.Libraries](./LibrariesNamespace.md)
* assembly [Oxide.Ext.Discord](../../Oxide.Ext.Discord.md)
Expand Down
Loading

0 comments on commit 2aa842a

Please sign in to comment.