added edit server function.

This commit is contained in:
5elenay
2021-08-23 15:10:30 +03:00
parent 1d8511895c
commit 2de607359d
2 changed files with 19 additions and 1 deletions

View File

@@ -145,7 +145,7 @@ func (c Channel) FetchMessage(id string) (*Message, error) {
}
// Edit channel.
func (c *Channel) Edit(ec *EditChannel) error {
func (c Channel) Edit(ec *EditChannel) error {
data, err := json.Marshal(ec)
if err != nil {