| Author | SHA1 | Message | Date |
|---|---|---|---|
|
|
988536635b | Add marshal by ref to entities | 3 years ago |
| @@ -1,8 +1,8 @@ | |||||
| using System; | |||||
| using System; | |||||
| namespace Discord.Rest | namespace Discord.Rest | ||||
| { | { | ||||
| public abstract class RestEntity<T> : IEntity<T> | |||||
| public abstract class RestEntity<T> : MarshalByRefObject, IEntity<T> | |||||
| where T : IEquatable<T> | where T : IEquatable<T> | ||||
| { | { | ||||
| internal BaseDiscordClient Discord { get; } | internal BaseDiscordClient Discord { get; } | ||||
| @@ -2,7 +2,7 @@ using System; | |||||
| namespace Discord.WebSocket | namespace Discord.WebSocket | ||||
| { | { | ||||
| public abstract class SocketEntity<T> : IEntity<T> | |||||
| public abstract class SocketEntity<T> : MarshalByRefObject, IEntity<T> | |||||
| where T : IEquatable<T> | where T : IEquatable<T> | ||||
| { | { | ||||
| internal DiscordSocketClient Discord { get; } | internal DiscordSocketClient Discord { get; } | ||||